[FIX] sale, purchase: currency in subtotal

The "Subtotal" field of a SO/PO line is not rounding following the
currency rules.

opw-710701
This commit is contained in:
Nicolas Martinelli
2017-03-08 15:26:25 +01:00
parent 681625ea56
commit bfef35774d
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -210,6 +210,7 @@
<page string="Products">
<field name="order_line" attrs="{'readonly': [('state', 'in', ('done', 'cancel'))]}">
<tree string="Purchase Order Lines" editable="bottom">
<field name="currency_id" invisible="1"/>
<field name="state" invisible="1"/>
<field name="sequence" widget="handle"/>
<field name="product_id" attrs="{'readonly': [('state', 'in', ('purchase', 'to approve','done', 'cancel'))]}" context="{'partner_id':parent.partner_id, 'quantity':product_qty,'uom':product_uom, 'company_id': parent.company_id}"/>
+1
View File
@@ -289,6 +289,7 @@
<field name="state" invisible="1"/>
<field name="invoice_status" invisible="1"/>
<field name="customer_lead" invisible="1"/>
<field name="currency_id" invisible="1"/>
</tree>
<kanban class="o_kanban_mobile">
<field name="product_id"/>