mrp_average_cost: Fix decimal precision
product_usability: add link to show history of standard price
This commit is contained in:
@@ -12,10 +12,10 @@
|
||||
<field name="inherit_id" ref="mrp.mrp_bom_form_view"/>
|
||||
<field name="arch" type="xml">
|
||||
<field name="routing_id" position="after">
|
||||
<field name="total_components_cost"/>
|
||||
<field name="total_labour_cost"/>
|
||||
<field name="extra_cost"/>
|
||||
<label for="total_cost"/>
|
||||
<field name="total_components_cost" widget="monetary" options="{'currency_field': 'company_currency_id'}"/>
|
||||
<field name="total_labour_cost" widget="monetary" options="{'currency_field': 'company_currency_id'}"/>
|
||||
<field name="extra_cost" widget="monetary" options="{'currency_field': 'company_currency_id'}"/>
|
||||
<label for="total_cost" widget="monetary" options="{'currency_field': 'company_currency_id'}"/>
|
||||
<div>
|
||||
<field name="total_cost" widget="monetary"
|
||||
options="{'currency_field': 'company_currency_id'}"
|
||||
@@ -33,7 +33,8 @@
|
||||
</page>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='bom_line_ids']/tree/field[@name='product_uom_id']" position="after">
|
||||
<field name="standard_price"/>
|
||||
<field name="standard_price" widget="monetary" options="{'currency_field': 'company_currency_id'}" sum="Total"/>
|
||||
<field name="company_currency_id" invisible="1"/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
@@ -46,7 +47,7 @@
|
||||
<field name="bom_id" invisible="not context.get('mrp_bom_labour_line_main_view')"/>
|
||||
<field name="labour_time" string="Labour Time (hours)"/>
|
||||
<field name="labour_cost_profile_id"/>
|
||||
<field name="labour_cost_subtotal" sum="Total"/>
|
||||
<field name="labour_cost_subtotal" sum="Total" widget="monetary" options="{'currency_field': 'company_currency_id'}"/>
|
||||
<field name="company_currency_id" invisible="1"/>
|
||||
<field name="note"/>
|
||||
</tree>
|
||||
@@ -66,7 +67,7 @@
|
||||
<label string="hours"/>
|
||||
</div>
|
||||
<field name="labour_cost_profile_id"/>
|
||||
<field name="labour_cost_subtotal"/>
|
||||
<field name="labour_cost_subtotal" widget="monetary" options="{'currency_field': 'company_currency_id'}"/>
|
||||
<field name="company_currency_id" invisible="1"/>
|
||||
<field name="note"/>
|
||||
</group>
|
||||
@@ -83,7 +84,7 @@
|
||||
<form string="Labour Cost Profile">
|
||||
<group name="main">
|
||||
<field name="name"/>
|
||||
<field name="hour_cost"/>
|
||||
<field name="hour_cost" widget="monetary" options="{'currency_field': 'company_currency_id'}"/>
|
||||
<field name="company_id" groups="base.group_multi_company"/>
|
||||
<field name="company_currency_id" invisible="1"/>
|
||||
</group>
|
||||
@@ -97,7 +98,7 @@
|
||||
<field name="arch" type="xml">
|
||||
<tree string="Labour Cost Profiles">
|
||||
<field name="name"/>
|
||||
<field name="hour_cost"/>
|
||||
<field name="hour_cost" widget="monetary" options="{'currency_field': 'company_currency_id'}"/>
|
||||
<field name="company_currency_id" invisible="1"/>
|
||||
</tree>
|
||||
</field>
|
||||
|
||||
Reference in New Issue
Block a user