From 0dbae23c8d1f2d287d3910d94529fdd72afc1f56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 21 Oct 2008 22:50:23 +0200 Subject: [PATCH] Fix compute_inv for wrong multiplication --- tax.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tax.py b/tax.py index 59ac4f4882..fd9096dd19 100644 --- a/tax.py +++ b/tax.py @@ -687,7 +687,8 @@ class Tax(OSV): context=context) res.reverse() for row in res: - row['amount'] *= quantity + row['base'] *= Decimal(str(quantity)) + row['amount'] *= Decimal(str(quantity)) return res Tax()