josseossa
4 weeks ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
4 additions and
0 deletions
-
sale_discount_total/models/account_move.py
|
@ -60,6 +60,10 @@ class AccountInvoice(models.Model): |
|
|
'line_ids.full_reconcile_id') |
|
|
'line_ids.full_reconcile_id') |
|
|
def _compute_amount(self): |
|
|
def _compute_amount(self): |
|
|
"""This function computes amount based on taxed,untaxed""" |
|
|
"""This function computes amount based on taxed,untaxed""" |
|
|
|
|
|
try: |
|
|
|
|
|
super(AccountInvoice, self)._compute_amount() |
|
|
|
|
|
except NameError: |
|
|
|
|
|
pass |
|
|
for move in self: |
|
|
for move in self: |
|
|
total_untaxed, total_untaxed_currency = 0.0, 0.0 |
|
|
total_untaxed, total_untaxed_currency = 0.0, 0.0 |
|
|
total_tax, total_tax_currency = 0.0, 0.0 |
|
|
total_tax, total_tax_currency = 0.0, 0.0 |
|
|