Merge pull request #18697 from phot0n/custom-module-def-ux
fix: make module def custom checkbox readonly in prod mode
This commit is contained in:
commit
c76c02f43d
1 changed files with 7 additions and 0 deletions
|
|
@ -9,5 +9,12 @@ frappe.ui.form.on("Module Def", {
|
|||
frm.set_value("app_name", "frappe");
|
||||
}
|
||||
});
|
||||
|
||||
if (!frappe.boot.developer_mode) {
|
||||
frm.set_df_property("custom", "read_only", 1);
|
||||
if (frm.is_new()) {
|
||||
frm.set_value("custom", 1);
|
||||
}
|
||||
}
|
||||
},
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue