mrp_average_cost: Fix decimal precision

product_usability: add link to show history of standard price
This commit is contained in:
Alexis de Lattre
2017-05-22 20:57:33 +02:00
committed by Raphaël Valyi
parent fc29b2b480
commit ae9a73488e
2 changed files with 35 additions and 9 deletions

View File

@@ -16,8 +16,9 @@
<group name="main">
<field name="product_id" invisible="not context.get('product_price_history_main_view')"/>
<field name="datetime"/>
<field name="cost"/>
<field name="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>
</form>
</field>
@@ -30,8 +31,9 @@
<tree string="Product Price History" editable="bottom">
<field name="product_id" invisible="not context.get('product_price_history_main_view')"/>
<field name="datetime"/>
<field name="cost"/>
<field name="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"/>
</tree>
</field>
</record>
@@ -67,13 +69,9 @@
<field name="model">product.template</field>
<field name="inherit_id" ref="product.product_template_form_view" />
<field name="arch" type="xml">
<!--
<group name="general" position="after">
<group name="price_history" string="Price History">
<field name="price_history_ids" nolabel="1"/>
</group>
</group>
-->
<field name="standard_price" class="oe_inline" position="after">
<button name="show_product_price_history" class="oe_inline oe_link" type="object" string="Show History" context="{'active_id': active_id}"/>
</field>
<!-- START for wider 'name' field -->
<!-- Don't make it too big, othesize computers with small resolutions
will see the product name + image under the block of buttons -->