[REF] account: get_followup_lines_domain now may be given ids to exclude
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user