[FIX] point of sale: don't convert the float with 'str'
bzr revid: olt@tinyerp.com-20090729133602-ydi1dkt8i64ptljp
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user