[hotfix] multicurrency patch

This commit is contained in:
Anand Doshi 2015-09-17 17:36:05 +05:30
parent c439b87ccc
commit ba0bf9e13d

View File

@ -66,7 +66,7 @@ def execute():
# Set party account if default currency of party other than company's default currency # Set party account if default currency of party other than company's default currency
for dt in ("Customer", "Supplier"): for dt in ("Customer", "Supplier"):
parties = frappe.get_all(dt) parties = frappe.get_all(dt, filters={"docstatus": 0})
for p in parties: for p in parties:
party = frappe.get_doc(dt, p.name) party = frappe.get_doc(dt, p.name)
party_accounts = [] party_accounts = []