1
<?xml version="1.0" encoding="utf-8"?>
4
<record id="view_production_lot_form" model="ir.ui.view">
5
<field name="name">view_production_lot_form</field>
6
<field name="model">stock.production.lot</field>
7
<field name="inherit_id" ref="stock.view_production_lot_form"></field>
8
<field name="arch" type="xml">
9
<field name="stock_available" position="after" version="7.0">
10
<field name="cost_method"></field>
11
<label string="Cost Price" for="standard_price" align="1.0" groups="base.group_user"/>
12
<div groups="base.group_user">
13
<field name="standard_price" attrs="{'readonly':[('cost_method','=','average')]}" nolabel="1"/>
14
<button name="%(action_view_change_standard_price)d" string="update"
15
type="action" attrs="{'invisible':[('cost_method','<>','average')]}"
16
class="oe_link" groups="product.group_costing_method"/>