1 OLD 7.0 2014 11 05
Xavier Brochard edited this page 2021-10-29 23:48:10 +02:00

Note

This conflict resolution was amended in github.com/OCA/OCB@fccea9a092

Conflict

diff --cc addons/account/account_invoice.py
index 2453c2e,febddd3..0000000
--- a/addons/account/account_invoice.py
+++ b/addons/account/account_invoice.py
@@@ -1761,14 -1744,14 +1761,24 @@@ class account_invoice_tax(osv.osv)
                      val['account_analytic_id'] = tax['account_analytic_paid_id']
  
                  # If the taxes generate moves on the same financial account as the invoice line
++<<<<<<< HEAD
 +                # and no default analytic account is defined at the tax level, propagate the 
 +                # analytic account from the invoice line to the tax line. This is necessary
 +                # in situations were (part of) the taxes cannot be reclaimed, 
++=======
+                 # and no default analytic account is defined at the tax level, propagate the
+                 # analytic account from the invoice line to the tax line. This is necessary
+                 # in situations were (part of) the taxes cannot be reclaimed,
++>>>>>>> odoo/7.0
                  # to ensure the tax move is allocated to the proper analytic account.
                  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
  
++<<<<<<< HEAD
 +                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'])
++>>>>>>> odoo/7.0
                  if not key in tax_grouped:
                      tax_grouped[key] = val
                  else:

Resolution

Retain upstream's formatting of the comment from github.com/OCA/OCB@7b7ca96e65, but keep key from github.com/OCA/OCB@fb7120d7b6

Committed as github.com/OCA/OCB@3e1d5be951 by @hbrunn