diff options
| author | qdp-odoo <qdp@odoo.com> | 2016-06-27 10:41:15 +0200 |
|---|---|---|
| committer | qdp-odoo <qdp@odoo.com> | 2016-06-27 10:55:07 +0200 |
| commit | 0a6afa1ff1dbb3dc61cfa9332c6b5cbcbc1ef97a (patch) | |
| tree | 8cc7092d1d065a9be71ce634fb1b5ea24e86f15f | |
| parent | c20ec2ced61555515752dc8b24236499cce4643d (diff) | |
[FIX] account: grouping tax lines on invoices when no tax account is set on them. Fixes #12561
| -rw-r--r-- | addons/account/models/account_invoice.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/account/models/account_invoice.py b/addons/account/models/account_invoice.py index c932be3345b..ba3c84e7525 100644 --- a/addons/account/models/account_invoice.py +++ b/addons/account/models/account_invoice.py @@ -567,7 +567,7 @@ class AccountInvoice(models.Model): if not val.get('account_analytic_id') and line.account_analytic_id and val['account_id'] == line.account_id.id: val['account_analytic_id'] = line.account_analytic_id.id - key = tax['id'] + key = str(tax['id']) + '-' + str(val['account_id']) if key not in tax_grouped: tax_grouped[key] = val else: |
