openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #18892
[Bug 1080183] Re: [trunk] Rounding error in partial picking
Hello Sebastien,
Faced the same problem on trunk. Checked your patch and its working
charm.. :-). Thanks doe the contribution!
Michael is already given a nice explanation on lp:1082047 for same bug
report.
Like...
scenario:
- make a delivery order with a product in kg, rounding precision = 0.01,
quantity is a rational number like 566323.7
- process and validate
You see the error: The uom rounding does not allow you to ship "566323.7
kg", only roundings of "0.01 kg" is accepted by the uom.
The problem is:
First we used python floats and calculated:
566323.7 * 100 = 56632369.9999999.
@Michael: Thanks for nice explanation but I am making a lp:1082047 as a
duplicate of this bug!
Thank you!
** Changed in: openobject-addons
Importance: Undecided => Medium
** Changed in: openobject-addons
Status: New => Confirmed
** Changed in: openobject-addons
Assignee: (unassigned) => OpenERP R&D Addons Team 2 (openerp-dev-addons2)
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1080183
Title:
[trunk] Rounding error in partial picking
Status in OpenERP Addons (modules):
Confirmed
Bug description:
With the partial picking wizard, we have this message :
The rounding of the initial uom does not allow you to ship "3888.0
Rouleau de 100M", as it would let a quantity of "-4.54747350886e-13
Rouleau de 100M" to ship and only roundings of "0.01 Rouleau de 100M"
is accepted by the uom.
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1080183/+subscriptions
References