[FIX] product.uom: use proper ratio for uoms bigger than the reference

Bigger UoMs should logically be specified using the
`factor_inv` column, similarly to what is done in
the form view when you select the Bigger type.
This also fixes the rounding issue of Dozen, which
was erroneously specified as .083, which is far
from 1/12.

bzr revid: odo@openerp.com-20121003115732-ws73com9prpt5trx
This commit is contained in:
Olivier Dony 2012-10-03 13:57:32 +02:00
parent 10513dc524
commit aa258fc7f0
1 changed files with 3 additions and 3 deletions

View File

@ -40,7 +40,7 @@
<record id="product_uom_dozen" model="product.uom">
<field name="category_id" ref="product.product_uom_categ_unit"/>
<field name="name">Dozen</field>
<field name="factor" eval="0.083"/>
<field name="factor_inv" eval="12"/>
<field name="uom_type">bigger</field>
</record>
<record id="product_uom_kgm" model="product.uom">
@ -70,7 +70,7 @@
<!-- 'tonne' is the most common spelling in english-speaking countries,
the alternative is 'metric ton' in the US, abbreviated as 'mt' -->
<field name="name">t</field>
<field name="factor" eval="0.001"/>
<field name="factor_inv" eval="1000"/>
<field name="uom_type">bigger</field>
</record>
<record id="product_uom_meter" model="product.uom">
@ -81,7 +81,7 @@
<record id="product_uom_km" model="product.uom">
<field name="category_id" ref="uom_categ_length"/>
<field name="name">km</field>
<field name="factor" eval="0.001"/>
<field name="factor_inv" eval="1000"/>
<field name="uom_type">bigger</field>
</record>
<record id="product_uom_cm" model="product.uom">