Fix tax compute for Decimal * float

This commit is contained in:
Cédric Krier committed 2008-04-09 17:49:19 +02:00
1 parent 7ce1a09e98
commit ac4afed069
1 file changed
+1 -1
+1 -1
View File
@@ -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):