fixes
diff --git a/erpnext/manufacturing/doctype/bom/bom.js b/erpnext/manufacturing/doctype/bom/bom.js
index d983ffb..4f78c41 100644
--- a/erpnext/manufacturing/doctype/bom/bom.js
+++ b/erpnext/manufacturing/doctype/bom/bom.js
@@ -10,7 +10,7 @@
cur_frm.add_custom_button(__("Update Cost"), cur_frm.cscript.update_cost,
"icon-money", "btn-default");
- cur_frm.add_custom_button(__("Update Item"), cur_frm.cscript.update_item_desc,
+ cur_frm.add_custom_button(__("Update Item Description"), cur_frm.cscript.update_item_desc,
"icon-tag", "btn-default");
}
diff --git a/erpnext/manufacturing/doctype/bom/bom.py b/erpnext/manufacturing/doctype/bom/bom.py
index 2917e6d..5c4a841 100644
--- a/erpnext/manufacturing/doctype/bom/bom.py
+++ b/erpnext/manufacturing/doctype/bom/bom.py
@@ -134,7 +134,7 @@
self.save()
def update_item_desc(self):
- if self.docstatus == 1:
+ if self.docstatus < 2:
self.ignore_validate_update_after_submit = True
self.description = frappe.db.get_value("Item", self.item, "description")
for d in self.get("items"):