mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-14 02:31:21 +00:00
[fix] for setting warehouse in account head
This commit is contained in:
@@ -165,7 +165,7 @@ class Account(Document):
|
|||||||
if not cint(frappe.defaults.get_global_default("auto_accounting_for_stock")):
|
if not cint(frappe.defaults.get_global_default("auto_accounting_for_stock")):
|
||||||
return
|
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:
|
if not self.warehouse:
|
||||||
throw(_("Warehouse is mandatory"))
|
throw(_("Warehouse is mandatory"))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user