UoM convertion with same Uom Category: New Uom ratio changed by system after save
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Low
|
OpenERP Publisher's Warranty Team |
Bug Description
1) Create new UoM Category
path Warehouse > Configuration > Product > Units of Measure > Units of Measure Categories
Name = 'Board_UOM'
2) Create new UoM
path Warehouse > Configuration > Product > Units of Measure > Units of Measure
Name: ‘Roll 3600’
UoM category : ‘Board_UoM’
UoM Type: ‘Bigger than the reference UoM’
Ratio: ‘3600’ (entered)
Rounding: ‘1’
=> after saving the ratio has been changed into ‘3597,122’. Why did the sytem changed the ratio??
New UoM:
Name: ‘Roll 3000’
UoM category : ‘Board_UoM’
UoM Type: ‘Bigger than the reference UoM’
Ratio: ‘3000’ entered
Rounding: ‘1’
=> after saving the amount has been changed into ‘3003,003'. Why did the sytem changed the ratio??
We are working on the OpenERP - GTK Client - v6.0.3
Related branches
- Naresh(OpenERP) (community): Approve
-
Diff: 12 lines (+1/-1)1 file modifiedproduct/product.py (+1/-1)
Changed in openobject-addons: | |
status: | Won't Fix → Confirmed |
Changed in openobject-addons: | |
assignee: | nobody → OpenERP Publisher's Warranty Team (openerp-opw) |
tags: | added: maintenance |
Changed in openobject-addons: | |
status: | Confirmed → In Progress |
Changed in openobject-addons: | |
status: | Fix Committed → Fix Released |
milestone: | none → 6.0.4 |
Hello Dirk Klaijsen ,
I have checked your issue. It's working fine in Trunk with Revision no :: 6552
This will work for "Bigger than the reference" like
factor_inv = 1200
Factor = 1/factor_inv = 1/1200 = 0.0008333
factor_inv = 1/factor = 1/0.0008333 = 1200.00000048
Thanks!