mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-14 10:13:57 +00:00
fix: quality inspection showing Not Saved
(cherry picked from commit 3f78d6afed)
This commit is contained in:
committed by
Mergify
parent
9975f5fe69
commit
abe599a49d
@@ -9,7 +9,7 @@ frappe.ui.form.on("Quality Inspection", {
|
|||||||
},
|
},
|
||||||
|
|
||||||
set_default_company(frm) {
|
set_default_company(frm) {
|
||||||
if (!frm.doc.company) {
|
if (frm.doc.docstatus === 0 && !frm.doc.company) {
|
||||||
frm.set_value("company", frappe.defaults.get_default("company"));
|
frm.set_value("company", frappe.defaults.get_default("company"));
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user