fix(Asset Repair): Prevent some fields from being copied on duplicating the doc
diff --git a/erpnext/assets/doctype/asset_repair/asset_repair.json b/erpnext/assets/doctype/asset_repair/asset_repair.json
index 53d72ab..6f9b686 100644
--- a/erpnext/assets/doctype/asset_repair/asset_repair.json
+++ b/erpnext/assets/doctype/asset_repair/asset_repair.json
@@ -75,7 +75,8 @@
"depends_on": "eval:!doc.__islocal",
"fieldname": "completion_date",
"fieldtype": "Datetime",
- "label": "Completion Date"
+ "label": "Completion Date",
+ "no_copy": 1
},
{
"default": "Pending",
@@ -233,7 +234,8 @@
{
"fieldname": "increase_in_asset_life",
"fieldtype": "Int",
- "label": "Increase In Asset Life(Months)"
+ "label": "Increase In Asset Life(Months)",
+ "no_copy": 1
},
{
"depends_on": "eval:!doc.__islocal",
@@ -241,6 +243,7 @@
"fieldtype": "Link",
"label": "Purchase Invoice",
"mandatory_depends_on": "eval: doc.repair_status == 'Completed' && doc.repair_cost > 0",
+ "no_copy": 1,
"options": "Purchase Invoice"
},
{
@@ -261,7 +264,7 @@
"index_web_pages_for_search": 1,
"is_submittable": 1,
"links": [],
- "modified": "2021-06-19 15:18:10.625833",
+ "modified": "2021-06-19 15:20:24.056706",
"modified_by": "Administrator",
"module": "Assets",
"name": "Asset Repair",