# "unit of measure rounding does not allow you to ship" error with my UoM

By
Andri Halim Gunawan
on 6/10/14, 9:45 PM 3,390 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?

I also have the same problem any help ?

Shokri Alnajjar
on 8/21/14, 9:01 AM

#### Med Said BARA

--Med Said BARA--

2739
| 5 5 7
Algeria
--Med Said BARA--
Med Said BARA
On 8/21/14, 10:55 AM

UoM and the Secret of the double Inversion !!!

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

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

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

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.

--------

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

Med Said BARA
on 8/21/14, 5:01 PM

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

### Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

3 follower(s)

### Stats

 Asked: 6/10/14, 9:45 PM Seen: 3390 times Last updated: 3/16/15, 8:10 AM