[FIX] commission_simple: fix filtering on invoice lines
This commit is contained in:
@@ -76,6 +76,7 @@ class CommissionProfileAssignment(models.Model):
|
|||||||
self.ensure_one()
|
self.ensure_one()
|
||||||
domain = [
|
domain = [
|
||||||
('display_type', '=', False),
|
('display_type', '=', False),
|
||||||
|
('exclude_from_invoice_tab', '=', False),
|
||||||
('move_id.move_type', 'in', ('out_invoice', 'out_refund')),
|
('move_id.move_type', 'in', ('out_invoice', 'out_refund')),
|
||||||
('date', '<=', date_range.date_end),
|
('date', '<=', date_range.date_end),
|
||||||
('company_id', '=', self.company_id.id),
|
('company_id', '=', self.company_id.id),
|
||||||
|
|||||||
Reference in New Issue
Block a user