feat: once company is saved, parent_company cannot be selected

This commit is contained in:
Zlash65 2019-01-28 16:39:14 +05:30 committed by Rohit Waghchaure
parent 1a4bfdd090
commit a57d58f756

View File

@ -53,8 +53,9 @@ frappe.ui.form.on("Company", {
},
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);