[FIX] point of sale: don't convert the float with 'str'

bzr revid: olt@tinyerp.com-20090729133602-ydi1dkt8i64ptljp
This commit is contained in:
Olivier Laurent
2009-07-29 15:36:02 +02:00
parent 217b590f2f
commit 4f47f833fa
+1 -1
View File
@@ -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: