diff --git a/aumms/aumms/doctype/design_analysis/design_analysis.js b/aumms/aumms/doctype/design_analysis/design_analysis.js index 4bedcafe..8056bb15 100644 --- a/aumms/aumms/doctype/design_analysis/design_analysis.js +++ b/aumms/aumms/doctype/design_analysis/design_analysis.js @@ -84,7 +84,7 @@ let create_bom_button = function(frm){ if(!frm.is_new()){ frm.add_custom_button('Create BOM',() =>{ create_bom(frm); - }, ); + },'Actions' ); } } @@ -310,7 +310,7 @@ function create_bom(frm) { freeze: true, callback: (r) => { frm.reload_doc(); - bom_dia.hide() + bom_dia.hide(); } }); } diff --git a/aumms/aumms/doctype/design_analysis/design_analysis.json b/aumms/aumms/doctype/design_analysis/design_analysis.json index ac218ad3..4ee43a92 100644 --- a/aumms/aumms/doctype/design_analysis/design_analysis.json +++ b/aumms/aumms/doctype/design_analysis/design_analysis.json @@ -198,7 +198,7 @@ ], "index_web_pages_for_search": 1, "links": [], - "modified": "2023-11-07 11:34:45.343042", + "modified": "2023-11-07 20:48:24.657689", "modified_by": "Administrator", "module": "AuMMS", "name": "Design Analysis", diff --git a/aumms/aumms/doctype/design_analysis/design_analysis.py b/aumms/aumms/doctype/design_analysis/design_analysis.py index 48932ce8..f78d4d71 100644 --- a/aumms/aumms/doctype/design_analysis/design_analysis.py +++ b/aumms/aumms/doctype/design_analysis/design_analysis.py @@ -31,6 +31,9 @@ def create_bom_function(doctype, docname,assign_to): "doctype": bom.doctype, "name": bom.name }) + frappe.db.set_value(doctype, docname, 'status','BOM Created') + frappe.db.commit() + frappe.msgprint("BOM Created", indicator="green", alert=1) #Send system notification and email to assignee subject = "New BOM request received" content = "You've been assigned a new BOM for work order creation. Please review it at your earliest convenience."