Multiply base tax amount also by quantity

This commit is contained in:
Cédric Krier committed 2008-04-10 11:21:23 +02:00
1 parent ac4afed069
commit 96570101fe
1 file changed
+1
+1
View File
@@ -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