Browse Source

[FIX][Sale_discount_total] _compute_amount: fix the calculation of th…e amount breaking any other customization on the method.

The method _compute_amount was breaking any other method customization, the fix is allowing other modules to live with this.
pull/336/head
josseossa 7 months ago
committed by GitHub
parent
commit
3095122b97
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      sale_discount_total/models/account_move.py

4
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

Loading…
Cancel
Save