From ac4afed069aaecf4da60cf79c30529f524a7302f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 9 Apr 2008 17:49:19 +0200 Subject: [PATCH] Fix tax compute for Decimal * float --- tax.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tax.py b/tax.py index 4421500029..233d0a33e4 100644 --- a/tax.py +++ b/tax.py @@ -352,7 +352,7 @@ class Tax(OSV): res = self._unit_compute(cursor, user, taxes, price_unit, context=context) for row in res: - row['amount'] *= quantity + row['amount'] *= Decimal(str(quantity)) return res def _process_tax_inv(self, cursor, user, tax, price_unit, context=None):