This question has been flagged
1 Reply
6452 Views

I created a new UoM called "Dos @ 12 Kg": Category weight and bigger than the reference UoM (Kg) with ratio = 12 with rounding precision 0.010
The system automatically changes its ratio to 12.000000000048

When I tried to deliver a product with this UoM, it causes a problem below:

The unit of measure rounding does not allow you to ship "100.0 Dos @ 12Kg", only rounding of "0.0 Dos @ 12Kg" is accepted by the Unit of Measure.

I have created other UoM similar to this "Dos @ 12Kg" but only this one is causing problems. What am I doing wrong?

Avatar
Discard

I also have the same problem any help ?

Best Answer

UoM and the Secret of the double Inversion !!!

Or the 7 Errors Game : Who can Find the error?

cm vs m  https://www.dropbox.com/s/7k8yuu7acxif1hw/cm vs m.png?dl=0

 

km vs m https://www.dropbox.com/s/58pu8ye47td5gxa/km vs m.png?dl=0

 

Dozen UoM  https://www.dropbox.com/s/t9q5jxpkgkhtycf/Dozen UoM.png?dl=0

 

Bigger than and Smaller Than: LET ME SEE YOU !!!  https://www.dropbox.com/s/goltw2x06h9bae2/Let me see you.png?dl=0

 

The Arithmetic (From the product.py):

Ratio  = 12

factor_inv = 1 / Ratio = 0.083333333333

1 / factor_inv = 1 / 0.083333333333 = 12,000000000048 = Ratio

 

Let's play now: With the Wrong Tooltip and the Double Inversion

Ratio Smaller than   https://www.dropbox.com/s/4s0ru3z60iv4low/Factor - Smaller than.png?dl=0

 

Ratio Bigger than   https://www.dropbox.com/s/35wonm604bpil0o/Factor - Bigger than.png?dl=0

 

Added on 11/23/2014

------------------------------

After the Odoo updates on 08, 09 and 16 October 2014 this issue (and other issues related to UoM conversion) can be considered as (partially) solved.

--------

Avatar
Discard

Sorry for the error, now corrected: ZERO replaced by ONE in Greater than and Smaller than.