mirror of
https://github.com/frappe/erpnext.git
synced 2025-12-03 18:35:36 +00:00
fix: quality inspection showing Not Saved
This commit is contained in:
@@ -9,7 +9,7 @@ frappe.ui.form.on("Quality Inspection", {
|
||||
},
|
||||
|
||||
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"));
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user