New implementation of KM cost to property support the decimal precision at 3 digits (without changing the decimal precision of all prices in Odoo)

This commit is contained in:
Alexis de Lattre
2017-06-08 11:25:21 +02:00
parent aca7911d81
commit 19909b6761
13 changed files with 186 additions and 208 deletions

View File

@@ -21,14 +21,8 @@
<field name="uom_po_id" ref="product.product_uom_km"/>
<field name="taxes_id" eval="False"/>
<field name="supplier_taxes_id" eval="False"/>
<field name="company_id" eval="False"/>
</record>
<!-- KM cost is decimal precision = 3
but decimal precision 'Product Price' is 2 by default,
and companies may not want to change it -->
<record forcecreate="True" id="decimal_price" model="decimal.precision">
<field name="name">Expense Unit Price</field>
<field name="digits">3</field>
</record>
</odoo>