diff --git a/agreement_rebate/wizards/invoice_create.py b/agreement_rebate/wizards/invoice_create.py index e49aaf5e..fbfe5a4b 100644 --- a/agreement_rebate/wizards/invoice_create.py +++ b/agreement_rebate/wizards/invoice_create.py @@ -96,7 +96,7 @@ def action_create_invoice(self): ) settlements -= settlements.filtered( lambda s: any( - ail.move_id.type == self.invoice_type + ail.move_id.move_type == self.invoice_type for ail in s.line_ids.mapped("invoice_line_ids").filtered( lambda ln: ln.parent_state != "cancel" )