mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-20 07:22:13 +00:00
fix: Ignore disabling default currency field while creating new company (#41699)
(cherry picked from commit 80f6228d45)
Co-authored-by: Nabin Hait <nabinhait@gmail.com>
This commit is contained in:
@@ -12,10 +12,11 @@ frappe.ui.form.on("Company", {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
if (!frm.doc.__islocal) {
|
||||||
frm.call("check_if_transactions_exist").then((r) => {
|
frm.call("check_if_transactions_exist").then((r) => {
|
||||||
frm.toggle_enable("default_currency", !r.message);
|
frm.toggle_enable("default_currency", !r.message);
|
||||||
});
|
});
|
||||||
|
}
|
||||||
},
|
},
|
||||||
setup: function (frm) {
|
setup: function (frm) {
|
||||||
frm.__rename_queue = "long";
|
frm.__rename_queue = "long";
|
||||||
|
|||||||
Reference in New Issue
Block a user