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? -- Cédric Krier B2CK SPRL Rue de Rotterdam, 4 4000 Liège Belgium Tel: +32 472 54 46 59 Email/Jabber: [email protected] Website: http://www.b2ck.com/
pgpFDy_gc8u4B.pgp
Description: PGP signature
