From 0755ffd2be7ffdb6dd47b98d10fd8fe1abed26a8 Mon Sep 17 00:00:00 2001 From: Marian Cuadra Date: Wed, 9 Oct 2024 15:08:52 +0200 Subject: [PATCH] [FIX] agreement_rebate: The type of account move is defined in the field move_type --- agreement_rebate/wizards/invoice_create.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" )