fix: Item Price changes are not persistent after updating cost on submitted BOM (#19356)

This commit is contained in:
Deepesh Garg 2019-10-21 13:27:40 +05:30 committed by Nabin Hait
parent 717ad388be
commit 4821f38d25

View File

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