I am trying to add 2 new fields to module Product with this xml code:
<record id="product_product_template_only_form_view" model="ir.ui.view">
<field name="model">product.product</field>
<field name="inherit_id" ref="product.product_template_only_form_view" />
<field name="arch" type="xml">
<field name="list_price" position="after">
<field name="boatlength" />
<field name="fuelcapacity" />
</field>
</field>
</record>
I have no error message but the fields are not showing where they should be. I checked that the view was correct and it seems to be:
Manage Views (product.template)
Sequence
View Name
View Type
Object
External ID
Inherited View
5 product.template.form.inherit Form product.template account.product_template_form_view product.template.common.form
8 product.template.product.form Form product.template product.product_template_only_form_view product.template.common.form
16 product.form.mrp.inherited Form product.template mrp.view_mrp_product_template_form_inherited
list_price is there :
Product Type
Consumable
Sale Price (name= list_price)
65000.00
What am I doing wrong??
be aware of priorities of views, maybe there were another view with higher priority (or explicitly stated one) loaded into the UI? you can check that using developer mode.
Hi,Try to inherit using this id product.product_normal_form_view.
Saravanan, tried that but got this error: '' cannot be located in parent view.