[FIX] account: performances of map_tax

break on first match instead of checking other Tax Source that will not match
anyway.
This commit is contained in:
Martin Trigaux
2016-06-28 13:23:41 +02:00
parent 173b76c7bb
commit 5d9e4b7858
+1
View File
@@ -72,6 +72,7 @@ class AccountFiscalPosition(models.Model):
tax_count += 1
if t.tax_dest_id:
result |= t.tax_dest_id
break
if not tax_count:
result |= tax
return result