2013/7/17 Cédric Krier <[email protected]> > On 17/07/13 15:11 +0200, Guillem Barba Domingo wrote: > > It should be useful to have a 'compute_qty()' method compatible with > > Decimal quantities. > > Have you a use case? >
yes. A system which has to distribute all the quantity in a Location (until 0.0). But as all "quantities" (not prices) in tryton are also represented by 'floats' I will change my fields to fields.Float and assume rounding errors (I already do it in the original code). -- Guillem Barba http://www.guillem.alcarrer.net
