fix: Demo Script

This commit is contained in:
deepeshgarg007
2019-10-15 19:16:45 +05:30
parent 3f2c5c2319
commit 3db65ef7e8
5 changed files with 28 additions and 75 deletions

View File

@@ -204,7 +204,7 @@ class Company(NestedSet):
})
for default_account in default_accounts:
if self.is_new() or frappe.flags.in_test:
if self.is_new() or frappe.flags.in_test or frappe.flags.in_demo:
self._set_default_account(default_account, default_accounts.get(default_account))
if not self.default_income_account: