Merge pull request #5776 from saurabh6790/warehouse_accounting_fix

[fix] for setting warehouse in account head
This commit is contained in:
Rushabh Mehta 2016-07-19 21:35:09 +05:30 committed by GitHub
commit c0cc9902d9

View File

@ -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"))