[fixes] check group condition

This commit is contained in:
Saurabh
2016-06-25 14:18:28 +05:30
parent 7fecb50360
commit 78333c7e07
4 changed files with 5 additions and 4 deletions

View File

@@ -322,6 +322,6 @@ def get_warehouse_account():
for d in frappe.db.sql("""select warehouse, name, account_currency from tabAccount
where account_type = 'Stock' and (warehouse is not null and warehouse != ''
and is_group != 1)""", as_dict=1):
and is_group != 1) and is_group=0 """, as_dict=1):
warehouse_account.setdefault(d.warehouse, d)
return warehouse_account