From bd74461b7b33b8322c7b14fb991b59dac5bfe0ce Mon Sep 17 00:00:00 2001 From: josseossa <32182869+josseossa@users.noreply.github.com> Date: Mon, 23 Sep 2024 19:40:14 -0400 Subject: [PATCH] Update account_invoice.py The module is breaking any other module that calls the _compute_amount method on account_move. I'm adding the line that fix that issue. --- sale_discount_total/models/account_invoice.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sale_discount_total/models/account_invoice.py b/sale_discount_total/models/account_invoice.py index 3db4746cc..41d8d678d 100644 --- a/sale_discount_total/models/account_invoice.py +++ b/sale_discount_total/models/account_invoice.py @@ -60,6 +60,7 @@ class AccountInvoice(models.Model): 'line_ids.payment_id.state', 'line_ids.full_reconcile_id') def _compute_amount(self): + super(AccountInvoice, self)._compute_amount() for move in self: total_untaxed, total_untaxed_currency = 0.0, 0.0 total_tax, total_tax_currency = 0.0, 0.0