El 17/07/2013 16:05, "Cédric Krier" <[email protected]> va escriure: > > On 17/07/13 15:55 +0200, Guillem Barba Domingo wrote: > > 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). > > Please provide more information. > What does it mean "distribute all the quantity"? > What kind of product is it? > Why could you have rounding issue? Which kind of unit?
Forget it. We will talk internally and if it's still necessary we will do a proposal with a complete use case.
