[FIX] account: grouping tax lines on invoices when no tax account is set on them. Fixes #12561

This commit is contained in:
qdp-odoo
2016-06-27 10:55:07 +02:00
parent c20ec2ced6
commit 0a6afa1ff1
+1 -1
View File
@@ -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: