Minor fix

This commit is contained in:
Nabin Hait
2014-10-15 14:42:18 +05:30
parent 531077e504
commit b2f32dac1b

View File

@@ -11,6 +11,7 @@ def execute():
warehouse_account = frappe.db.sql("""select name, master_name from tabAccount
where ifnull(account_type, '') = 'Warehouse'""")
if warehouse_account:
warehouses = [d[1] for d in warehouse_account]
accounts = [d[0] for d in warehouse_account]