fixes
This commit is contained in:
parent
f1f0a8ac19
commit
26b01f7852
@ -10,7 +10,7 @@ cur_frm.cscript.refresh = function(doc,dt,dn){
|
||||
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");
|
||||
}
|
||||
|
||||
|
@ -134,7 +134,7 @@ class BOM(Document):
|
||||
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"):
|
||||
|
Loading…
x
Reference in New Issue
Block a user