[REF] account: get_followup_lines_domain now may be given ids to exclude

This commit is contained in:
pvy
2015-11-19 10:52:50 +01:00
parent 1dc32c7277
commit 17b131b404
+4 -1
View File
@@ -329,7 +329,10 @@ class ResPartner(models.Model):
if only_unblocked:
domain += [('blocked', '=', False)]
if self.ids:
domain += [('partner_id', 'in', self.ids)]
if 'exclude_given_ids' in self._context:
domain += [('partner_id', 'not in', self.ids)]
else:
domain += [('partner_id', 'in', self.ids)]
#adding the overdue lines
overdue_domain = ['|', '&', ('date_maturity', '!=', False), ('date_maturity', '<=', date), '&', ('date_maturity', '=', False), ('date', '<=', date)]
if overdue_only: