[FIX] account: grouping by line should take into consideration the applied taxes

This commit is contained in:
qdp-odoo
2017-01-27 16:05:00 +01:00
parent 7c9ad40e0a
commit c528f7aff6
+2 -1
View File
@@ -713,8 +713,9 @@ class AccountInvoice(models.Model):
will be grouped together if the journal has the 'group line' option. Of course a module
can add fields to invoice lines that would need to be tested too before merging lines
or not."""
return "%s-%s-%s-%s-%s" % (
return "%s-%s-%s-%s-%s-%s" % (
invoice_line['account_id'],
invoice_line.get('tax_ids', 'False'),
invoice_line.get('tax_line_id', 'False'),
invoice_line.get('product_id', 'False'),
invoice_line.get('analytic_account_id', 'False'),