Merge pull request #19446 from rohitwaghchaure/not_able_to_select_project_in_work_order

fix: not able to select the project in the work order
This commit is contained in:
rohitwaghchaure 2019-10-30 16:32:34 +05:30 committed by GitHub
commit 7b6ab9738d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -342,7 +342,7 @@ frappe.ui.form.on("Work Order", {
},
project: function(frm) {
if(!erpnext.in_production_item_onchange) {
if(!erpnext.in_production_item_onchange && !frm.doc.bom_no) {
frm.trigger("production_item");
}
},