fix: none type object updates AR report row (#19958)

This commit is contained in:
Saqib 2019-12-23 16:01:38 +05:30 committed by Nabin Hait
parent 1263515a92
commit 4f18d2548d

View File

@ -285,7 +285,7 @@ class ReceivablePayableReport(object):
def set_party_details(self, row):
# customer / supplier name
party_details = self.get_party_details(row.party)
party_details = self.get_party_details(row.party) or {}
row.update(party_details)
if self.filters.get(scrub(self.filters.party_type)):
row.currency = row.account_currency