fix: update cost not working in the draft bom

This commit is contained in:
Rohit Waghchaure 2021-07-01 11:50:48 +05:30
parent cf4e29a604
commit f99f872946

View File

@ -325,8 +325,7 @@ frappe.ui.form.on("BOM", {
freeze: true, freeze: true,
args: { args: {
update_parent: true, update_parent: true,
from_child_bom:false, from_child_bom:false
save: frm.doc.docstatus === 1 ? true : false
}, },
callback: function(r) { callback: function(r) {
refresh_field("items"); refresh_field("items");