From 8434518bca73ee862f5ef107581009cd8253f143 Mon Sep 17 00:00:00 2001 From: Maximiliano Mezzavilla Date: Thu, 27 Jun 2024 11:38:59 -0300 Subject: [PATCH] [FIX] account_payment_pro: Problema al querer generar una nota de debito desde un pago con impuesto NA Ticket: 76253 --- account_payment_pro/wizards/account_payment_invoice_wizard.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/account_payment_pro/wizards/account_payment_invoice_wizard.py b/account_payment_pro/wizards/account_payment_invoice_wizard.py index 76de29bc9..f83bc21e8 100644 --- a/account_payment_pro/wizards/account_payment_invoice_wizard.py +++ b/account_payment_pro/wizards/account_payment_invoice_wizard.py @@ -142,8 +142,7 @@ def _compute_amount_untaxed(self): """ self.ensure_one() tax_percent = 0.0 - for tax in self.tax_ids.filtered( - lambda x: not x.price_include): + for tax in self.tax_ids.filtered(lambda x: not x.price_include and x.amount_type not in ['fixed'] or x.amount): if tax.amount_type == 'percent': tax_percent += tax.amount elif tax.amount_type == 'partner_tax':