5
<!-- Remove cost price to move it -->
6
<record model="ir.ui.view" id="product_get_cost_field.product_get_cost_field_form">
7
<field name="name">product.get_cost_field.view.form</field>
8
<field name="type">form</field>
9
<field name="model">product.product</field>
10
<field name="inherit_id" ref="product.product_normal_form_view" />
11
<field name="arch" type="xml">
12
<field name="cost_method" groups="product.group_costing_method" position="after">
17
5
<record id="view_product_standard_price_form" model="ir.ui.view">
18
6
<field name="name">product.product.standard.price.form.inherit</field>
19
7
<field name="model">product.product</field>
20
<field name="priority">20</field>
21
<field name="inherit_id" ref="stock.view_product_standard_price_form"/>
8
<field name="inherit_id" ref="product_get_cost_field.product_get_cost_field_form"/>
22
9
<field name="arch" type="xml">
23
<label for="standard_price" position="before">
10
<xpath expr="//field[@name='cost_price']" position="attributes">
11
<attribute name="groups">base.group_user</attribute>
12
<attribute name="nolabel">1</attribute>
14
<xpath expr="//field[@name='cost_price']" position="before">
24
15
<label for="cost_price" align="1.0" groups="base.group_user"/>
25
<div groups="base.group_user">
26
<field name="cost_price" nolabel="1"/>