[fix] for setting warehouse in account head
diff --git a/erpnext/accounts/doctype/account/account.py b/erpnext/accounts/doctype/account/account.py
index 689c3e9..ced1e85 100644
--- a/erpnext/accounts/doctype/account/account.py
+++ b/erpnext/accounts/doctype/account/account.py
@@ -165,7 +165,7 @@
 		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"))