diff --git a/sale_discount_total/models/account_move.py b/sale_discount_total/models/account_move.py index afa612dc7..428bdd039 100644 --- a/sale_discount_total/models/account_move.py +++ b/sale_discount_total/models/account_move.py @@ -60,6 +60,10 @@ class AccountInvoice(models.Model): 'line_ids.full_reconcile_id') def _compute_amount(self): """This function computes amount based on taxed,untaxed""" + try: + super(AccountInvoice, self)._compute_amount() + except NameError: + pass for move in self: total_untaxed, total_untaxed_currency = 0.0, 0.0 total_tax, total_tax_currency = 0.0, 0.0