mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 16:04:46 +00:00
fix(Supplier Group): properly call frm.set_read_only()
This commit is contained in:
@@ -40,7 +40,7 @@ frappe.ui.form.on("Supplier Group", {
|
|||||||
},
|
},
|
||||||
set_root_readonly: function (frm) {
|
set_root_readonly: function (frm) {
|
||||||
if (!frm.doc.parent_supplier_group && !frm.doc.__islocal) {
|
if (!frm.doc.parent_supplier_group && !frm.doc.__islocal) {
|
||||||
frm.trigger("set_read_only");
|
frm.set_read_only();
|
||||||
frm.set_intro(__("This is a root supplier group and cannot be edited."));
|
frm.set_intro(__("This is a root supplier group and cannot be edited."));
|
||||||
} else {
|
} else {
|
||||||
frm.set_intro(null);
|
frm.set_intro(null);
|
||||||
|
|||||||
Reference in New Issue
Block a user