2013/7/15 Guillem Barba Domingo <[email protected]> > Hi, related to the poll about bew methods in UoM instances, I found > confusing the names of parameters of compute_qty/price claamethods of UOM > (really, I think it's wrong). > > The signature is compute_qty(from_uom, qty, to_uom, round) > It is a good signature for a classmethod (basically a function). I don't see a benefit of changing something here.
> But it does the next conversion: > "qty" of "to_UoM" => "from_UoM" > No, it converts in the oppositive way: "qty" of "from_uom" => "to_uom". > I think the names of parameters from_UoM/to_UoM must to bé splitted. > > What do you think? > The only thing that bit confuses is that the Tryton (and OpenERP) uses term "quantity" to describe "units". Normally, quantity describes combination of "units" and "unit of the measurement". The same thing is with "amounts in currency". -- Giedrius
