fix(Asset Repair): Prevent some fields from being copied on duplicating the doc
This commit is contained in:
parent
399d17e40e
commit
68e0c96c03
@ -75,7 +75,8 @@
|
|||||||
"depends_on": "eval:!doc.__islocal",
|
"depends_on": "eval:!doc.__islocal",
|
||||||
"fieldname": "completion_date",
|
"fieldname": "completion_date",
|
||||||
"fieldtype": "Datetime",
|
"fieldtype": "Datetime",
|
||||||
"label": "Completion Date"
|
"label": "Completion Date",
|
||||||
|
"no_copy": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"default": "Pending",
|
"default": "Pending",
|
||||||
@ -232,7 +233,8 @@
|
|||||||
{
|
{
|
||||||
"fieldname": "increase_in_asset_life",
|
"fieldname": "increase_in_asset_life",
|
||||||
"fieldtype": "Int",
|
"fieldtype": "Int",
|
||||||
"label": "Increase In Asset Life(Months)"
|
"label": "Increase In Asset Life(Months)",
|
||||||
|
"no_copy": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"depends_on": "eval:!doc.__islocal",
|
"depends_on": "eval:!doc.__islocal",
|
||||||
@ -240,6 +242,7 @@
|
|||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"label": "Purchase Invoice",
|
"label": "Purchase Invoice",
|
||||||
"mandatory_depends_on": "eval: doc.repair_status == 'Completed' && doc.repair_cost > 0",
|
"mandatory_depends_on": "eval: doc.repair_status == 'Completed' && doc.repair_cost > 0",
|
||||||
|
"no_copy": 1,
|
||||||
"options": "Purchase Invoice"
|
"options": "Purchase Invoice"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -260,7 +263,7 @@
|
|||||||
"index_web_pages_for_search": 1,
|
"index_web_pages_for_search": 1,
|
||||||
"is_submittable": 1,
|
"is_submittable": 1,
|
||||||
"links": [],
|
"links": [],
|
||||||
"modified": "2021-06-19 15:18:10.625833",
|
"modified": "2021-06-19 15:20:24.056706",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Assets",
|
"module": "Assets",
|
||||||
"name": "Asset Repair",
|
"name": "Asset Repair",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user