Avoid double write on standard_price: only need to write price_unit on finished stock move

This commit is contained in:
Alexis de Lattre
2017-05-22 23:54:50 +02:00
parent b8255a5287
commit 735495656c
2 changed files with 11 additions and 96 deletions

View File

@@ -119,7 +119,7 @@
<field name="model">mrp.production</field>
<field name="arch" type="xml">
<field name="availability" position="after">
<field name="unit_cost" widget="monetary" options="{'currency_field': 'company_currency_id'}" attrs="{'invisible': [('state', '!=', 'done')]}"/>
<field name="unit_cost" widget="monetary" options="{'currency_field': 'company_currency_id'}"/>
<field name="company_currency_id" invisible="1"/>
</field>
</field>