Merge pull request #19502 from rohitwaghchaure/removed_in_flag_test_while_creating_default_account

fix: code cleanup
This commit is contained in:
rohitwaghchaure
2019-11-05 14:56:01 +05:30
committed by GitHub

View File

@@ -207,7 +207,7 @@ class Company(NestedSet):
"default_expense_account": "Cost of Goods Sold"
})
if self.update_default_account or frappe.flags.in_test:
if self.update_default_account:
for default_account in default_accounts:
self._set_default_account(default_account, default_accounts.get(default_account))