Due to the _set_product_template_field function, it is not possible to set the standard price on a product template with more than one variant. Due to the _compute_product_template_field function, it is not possible to read the standard price on a product with more than one variant. The field "standard_price" is in readonly to avoid some problems if the costing method is in real time. Closes: #11308 opw:671013
18 lines
730 B
XML
18 lines
730 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<openerp>
|
|
<data>
|
|
<record id="mrp_bom_form_view_product_extended" model="ir.ui.view">
|
|
<field name="name">mrp.bom.form.product_extended</field>
|
|
<field name="model">mrp.bom</field>
|
|
<field name="inherit_id" ref="mrp.mrp_bom_form_view"/>
|
|
<field name="arch" type="xml">
|
|
<field name="product_id" position="after">
|
|
<field name="get_variant_count" invisible="1"/>
|
|
<field name="standard_price" readonly="1" attrs="{'invisible': [('get_variant_count', '>', 1)]}"/>
|
|
<newline/>
|
|
</field>
|
|
</field>
|
|
</record>
|
|
</data>
|
|
</openerp>
|