From 92c7874eb8f4cf14c04d4d7b50853d56aef30436 Mon Sep 17 00:00:00 2001 From: Olivier Dony Date: Wed, 29 Oct 2014 19:42:13 +0100 Subject: [PATCH] [FIX] account: indendation error in 82588fa The original tax should not be included if it was found in the tax mapping, even if it has no replacement. Fixes #2261 (hopefully, this time) --- addons/account/partner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/partner.py b/addons/account/partner.py index 74fbbe17853..c0a1a695e0c 100644 --- a/addons/account/partner.py +++ b/addons/account/partner.py @@ -82,8 +82,8 @@ class account_fiscal_position(osv.osv): tax_count = 0 for t in self.tax_ids: if t.tax_src_id == tax: + tax_count += 1 if t.tax_dest_id: - tax_count += 1 result |= t.tax_dest_id if not tax_count: result |= tax