From 04f3286c043b7da12670f675f2e6f0c233640e69 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Fri, 20 May 2016 15:47:56 +0530 Subject: [PATCH] Update company.py --- erpnext/setup/doctype/company/company.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/setup/doctype/company/company.py b/erpnext/setup/doctype/company/company.py index 6689d66748f..e114aaeb256 100644 --- a/erpnext/setup/doctype/company/company.py +++ b/erpnext/setup/doctype/company/company.py @@ -103,9 +103,9 @@ class Company(Document): create_charts(self.chart_of_accounts, self.name) frappe.db.set(self, "default_receivable_account", frappe.db.get_value("Account", - {"company": self.name, "account_type": "Receivable"})) + {"company": self.name, "account_type": "Receivable", "is_group": 0})) frappe.db.set(self, "default_payable_account", frappe.db.get_value("Account", - {"company": self.name, "account_type": "Payable"})) + {"company": self.name, "account_type": "Payable", "is_group": 0})) def set_default_accounts(self): self._set_default_account("default_cash_account", "Cash")