diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2016-10-24 09:01:21 +0200 |
|---|---|---|
| committer | Nicolas Martinelli <nim@odoo.com> | 2016-10-24 09:01:21 +0200 |
| commit | 3164ca896283dcc74c0a93faec791a2bb96a14ec (patch) | |
| tree | 9ebbec92db278338c7951a142f9bc417efd9f8e6 /addons | |
| parent | f74ea276cd45efc7cca982b3596066ceea4c791e (diff) | |
[FIX] account: define tax base
Make sure tax.base is always defined to avoid traceback.
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/account/models/account_invoice.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/account/models/account_invoice.py b/addons/account/models/account_invoice.py index 1f86bfb5158..c2c836110f8 100644 --- a/addons/account/models/account_invoice.py +++ b/addons/account/models/account_invoice.py @@ -1302,6 +1302,7 @@ class AccountInvoiceTax(models.Model): for invoice in self.mapped('invoice_id'): tax_grouped[invoice.id] = invoice.get_taxes_values() for tax in self: + tax.base = 0.0 if tax.tax_id: key = tax.tax_id.get_grouping_key({ 'tax_id': tax.tax_id.id, |
