From dcb41da02a27fc73de7722f557ea22bb05cd8526 Mon Sep 17 00:00:00 2001 From: Saurabh Date: Sat, 16 Jul 2016 11:17:43 +0530 Subject: [PATCH] [fix] for setting warehouse in account head --- erpnext/accounts/doctype/account/account.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/accounts/doctype/account/account.py b/erpnext/accounts/doctype/account/account.py index 689c3e9d48..ced1e8516d 100644 --- a/erpnext/accounts/doctype/account/account.py +++ b/erpnext/accounts/doctype/account/account.py @@ -165,7 +165,7 @@ class Account(Document): if not cint(frappe.defaults.get_global_default("auto_accounting_for_stock")): return - if self.account_type == "Stock" and not self.is_group: + if self.account_type == "Stock" and not cint(self.is_group): if not self.warehouse: throw(_("Warehouse is mandatory"))