[FIX] account: fix error in aged partner balance, variable at_least_one_amount referenced before assignment

This commit is contained in:
Cedric Snauwaert
2016-05-24 14:21:25 +02:00
parent fea0fef7a2
commit 784cdf9724
@@ -128,6 +128,7 @@ class ReportAgedPartnerBalance(models.AbstractModel):
history.append(partners_amount)
for partner in partners:
at_least_one_amount = False
values = {}
# Query here is replaced by one query which gets the all the partners their 'after' value
after = False