From 4f47f833fafa2bc89766d56dc8d0e11054185f3e Mon Sep 17 00:00:00 2001 From: Olivier Laurent Date: Wed, 29 Jul 2009 15:36:02 +0200 Subject: [PATCH] [FIX] point of sale: don't convert the float with 'str' bzr revid: olt@tinyerp.com-20090729133602-ydi1dkt8i64ptljp --- addons/point_of_sale/pos.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/point_of_sale/pos.py b/addons/point_of_sale/pos.py index 7c71436373d..f3ffec7ffc2 100644 --- a/addons/point_of_sale/pos.py +++ b/addons/point_of_sale/pos.py @@ -231,7 +231,7 @@ class pos_order(osv.osv): def test_paid(self, cr, uid, ids, context=None): def deci(val): - return Decimal(str(val)) + return Decimal("%f" % (val, )) for order in self.browse(cr, uid, ids, context): if order.lines and not order.amount_total: