[FIX] account: fiscal position may map single tax to multiple taxes
authorAlexis de Lattre <alexis@via.ecp.fr>
Mon, 27 Oct 2014 11:14:19 +0000 (12:14 +0100)
committerOlivier Dony <odo@openerp.com>
Mon, 27 Oct 2014 16:08:09 +0000 (17:08 +0100)
(This is a regression in Odoo 8)

It should now work when a fiscal position replaces 1 tax with
several taxes (for example : Fiscal position "Intra-EU B2B" in l10n_fr)

Fixes #2261, manual merge of PR #3316

addons/account/partner.py

index b402a33..fa6dd0e 100644 (file)
@@ -83,7 +83,6 @@ class account_fiscal_position(osv.osv):
                 if t.tax_src_id == tax:
                     if t.tax_dest_id:
                         result |= t.tax_dest_id
-                    break
             else:
                 result |= tax
         return result