← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 862449] Re: [6.0] Picking validation has rounding errors with digital precisions

 

The solution in lp:~openerp-dev/openobject-addons/6.0-opw-17871-rha does
not use the decimal precision, it simply uses %s instead of %d.

This way, you end up with the default python %s precision for floats of
6 decimals.

So, it would work for everyone who uses a decimal precision of 6 or
less, but not for people who uses a decimal precision of 7 or above
(though I doubt there are many of them).

But if you e.g. use only a precision of 2, you are presented with 6
decimals on these messages, which may be confusing for the basic user.

I encourage using the appropriate configurable decimal precision.

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP Project Group.
https://bugs.launchpad.net/bugs/862449

Title:
  [6.0] Picking validation has rounding errors with digital precisions

Status in OpenERP Addons (modules):
  Fix Committed

Bug description:
  Error messages in Picking validation use the %d formatter for error messages.
  This surpresses digits and you may end up with rounded (down) values.

  Look at the example picture with values <1
  "Processing quantity 0 [tons] for [product] is larger than the available quantity 0 [tons]!"

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/862449/+subscriptions


References