From 0a6afa1ff1dbb3dc61cfa9332c6b5cbcbc1ef97a Mon Sep 17 00:00:00 2001 From: qdp-odoo Date: Mon, 27 Jun 2016 10:41:15 +0200 Subject: [PATCH] [FIX] account: grouping tax lines on invoices when no tax account is set on them. Fixes #12561 --- addons/account/models/account_invoice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: