feat: once company is saved, parent_company cannot be selected
diff --git a/erpnext/setup/doctype/company/company.js b/erpnext/setup/doctype/company/company.js
index dbfbc59..5592e9b 100644
--- a/erpnext/setup/doctype/company/company.js
+++ b/erpnext/setup/doctype/company/company.js
@@ -53,8 +53,9 @@
},
refresh: function(frm) {
- if(frm.doc.abbr && !frm.doc.__islocal) {
+ if(!frm.doc.__islocal) {
frm.set_df_property("abbr", "read_only", 1);
+ frm.set_df_property("parent_company", "read_only", 1);
}
frm.toggle_display('address_html', !frm.doc.__islocal);