From 96570101fe1b8406d5b73ee27e0860489c87cb8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 10 Apr 2008 11:21:23 +0200 Subject: [PATCH] Multiply base tax amount also by quantity --- tax.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tax.py b/tax.py index 233d0a33e4..eae4284fe6 100644 --- a/tax.py +++ b/tax.py @@ -352,6 +352,7 @@ class Tax(OSV): res = self._unit_compute(cursor, user, taxes, price_unit, context=context) for row in res: + row['base'] *= Decimal(str(quantity)) row['amount'] *= Decimal(str(quantity)) return res