Browse Source

Add update to the case it's a new invoice

pull/332/merge^2
josseossa 11 months ago
committed by GitHub
parent
commit
6783087ac4
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 5
      sale_discount_total/models/account_invoice.py

5
sale_discount_total/models/account_invoice.py

@ -60,7 +60,10 @@ class AccountInvoice(models.Model):
'line_ids.payment_id.state',
'line_ids.full_reconcile_id')
def _compute_amount(self):
super(AccountInvoice, self)._compute_amount()
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