fix(ux): remove get item buttons from submitted production plan

This commit is contained in:
Ankush Menat
2022-03-14 13:27:44 +05:30
committed by Ankush Menat
parent c1740ced97
commit 1af13ca4bf

View File

@@ -190,7 +190,7 @@
"label": "Select Items to Manufacture" "label": "Select Items to Manufacture"
}, },
{ {
"depends_on": "get_items_from", "depends_on": "eval:doc.get_items_from && doc.docstatus == 0",
"fieldname": "get_items", "fieldname": "get_items",
"fieldtype": "Button", "fieldtype": "Button",
"label": "Get Finished Goods for Manufacture" "label": "Get Finished Goods for Manufacture"
@@ -198,6 +198,7 @@
{ {
"fieldname": "po_items", "fieldname": "po_items",
"fieldtype": "Table", "fieldtype": "Table",
"label": "Assembly Items",
"no_copy": 1, "no_copy": 1,
"options": "Production Plan Item", "options": "Production Plan Item",
"reqd": 1 "reqd": 1
@@ -350,6 +351,7 @@
"hide_border": 1 "hide_border": 1
}, },
{ {
"depends_on": "get_items_from",
"fieldname": "sub_assembly_items", "fieldname": "sub_assembly_items",
"fieldtype": "Table", "fieldtype": "Table",
"label": "Sub Assembly Items", "label": "Sub Assembly Items",
@@ -357,6 +359,7 @@
"options": "Production Plan Sub Assembly Item" "options": "Production Plan Sub Assembly Item"
}, },
{ {
"depends_on": "eval:doc.po_items && doc.po_items.length && doc.docstatus == 0",
"fieldname": "get_sub_assembly_items", "fieldname": "get_sub_assembly_items",
"fieldtype": "Button", "fieldtype": "Button",
"label": "Get Sub Assembly Items" "label": "Get Sub Assembly Items"
@@ -382,7 +385,7 @@
"index_web_pages_for_search": 1, "index_web_pages_for_search": 1,
"is_submittable": 1, "is_submittable": 1,
"links": [], "links": [],
"modified": "2022-02-23 17:16:10.629378", "modified": "2022-03-14 03:56:23.209247",
"modified_by": "Administrator", "modified_by": "Administrator",
"module": "Manufacturing", "module": "Manufacturing",
"name": "Production Plan", "name": "Production Plan",
@@ -404,5 +407,6 @@
} }
], ],
"sort_field": "modified", "sort_field": "modified",
"sort_order": "ASC" "sort_order": "ASC",
"states": []
} }