# [v8] how do 5 dozen(s) equal 61 unit(s)?

By
gunnar
on 3/28/15, 1:06 AM 1,041 views

have product. UoM is Unit(s) and a Purchase UoM in dozen(s).

After Purchasing 5 dozen(s) I get a stocklevel of 61 Unit(s)

What do I have to do to get this right? From what I know about Pythong there shouldn't be a problem multiplying 12.0000 * 5.0000. Is it the rounding precision (I think 0.1 by default) that causes such an error?

Why 12.0000 * 5.0000 and not 12.2000 * 5.0000? Where is an error?

Zbik
on 3/28/15, 7:38 AM

Hi,, Are you using v7 ???

Baiju KS
on 3/28/15, 9:25 AM
@zbik ? 1 dozen IS 12 pcs (also in Odoo), isn't it? Where do you get 12.2000 from?
@Baiju updated my question. It's 8.0
gunnar
on 3/29/15, 11:39 PM

I misunderstood your problem. In my test system when 1 dozen = 12 pcs all works ok and result = 60

Zbik
on 3/30/15, 7:55 AM

#### Zbik

--Zbik--
6750
| 6 5 7
Lodz, Poland
--Zbik--

Zbik
On 3/30/15, 1:22 PM

See this todays commit, may be related.

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.

2 follower(s)

### Stats

 Asked: 3/28/15, 1:06 AM Seen: 1041 times Last updated: 3/30/15, 1:23 PM