fix: Add demo setup check in setup wizard

This commit is contained in:
Deepesh Garg
2023-07-07 10:49:56 +05:30
parent d5bdd9387a
commit bb5387fa5d
5 changed files with 25 additions and 1 deletions

View File

@@ -0,0 +1,11 @@
$(document).on("toolbar_setup", function() {
if (erpnext.is_demo_company_setup) {
console.log("setup");
}
});
erpnext.is_demo_company_setup = function() {
frappe.db.get_value("Global Default", "Global Default", "demo_company", function(r) {
console.log(r);
});
};