[FIX] Fixes incorrect merge 3e1d5be951fb8
authorMohammad Alhashash <alhashash@alhashash.net>
Thu, 6 Nov 2014 20:47:15 +0000 (22:47 +0200)
committerMohammad Alhashash <alhashash@alhashash.net>
Thu, 6 Nov 2014 20:56:02 +0000 (22:56 +0200)
Merge conflict at account/account_invoice.py (commit ab797f0cd8)
was incorrectly resolved. As a result, cannot validate invoices with
tax line.

addons/account/account_invoice.py

index 675a9f5..0deaee7 100644 (file)
@@ -1768,7 +1768,7 @@ class account_invoice_tax(osv.osv):
                 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 = (val['tax_code_id'], val['base_code_id'], val['account_id'], val['account_analytic_id'])
+                key = (val['tax_code_id'], val['base_code_id'], val['account_id'])
                 if not key in tax_grouped:
                     tax_grouped[key] = val
                 else: