[FIX] account: overdue balance

The overdue balance on the partner form takes into account the invoices
which are due today. It shouldn't be the case.

opw-685777
This commit is contained in:
Nicolas Martinelli
2016-08-10 12:15:06 +02:00
parent 414ad99a92
commit b2fb497a4c
+1 -1
View File
@@ -338,7 +338,7 @@ class ResPartner(models.Model):
else:
domain += [('partner_id', 'in', self.ids)]
#adding the overdue lines
overdue_domain = ['|', '&', ('date_maturity', '!=', False), ('date_maturity', '<=', date), '&', ('date_maturity', '=', False), ('date', '<=', date)]
overdue_domain = ['|', '&', ('date_maturity', '!=', False), ('date_maturity', '<', date), '&', ('date_maturity', '=', False), ('date', '<', date)]
if overdue_only:
domain += overdue_domain
return domain