[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user