Hello all,
I don't understand something about view inheritance. I need (again and again) your help.
When we click on Sales->Products->Products (form view) :
This view product.product_template_form_view is called and declared with model product.template. I understand this.
<record id="product.product_template_form_view" model="ir.ui.view">
<field name="name">product.template.common.form</field>
<field name="model">product.template</field>
<field name="mode">primary</field>
<field name="arch" type="xml">
<form string="Product">
[...]
</form>
</field>
</record>
When we click on Sales->Sales->Products variants (form view) :
This view product.product_normal_form_view is called and declared with model product.product. It inherits the above view
product.product_template_form_view. I don't understand this! These two views don't have the same model...
<record id="product.product_normal_form_view" model="ir.ui.view">
<field name="name">product.product.form</field>
<field name="model">product.product</field>
<field name="mode">primary</field>
<field eval="7" name="priority"/>
<field name="inherit_id" ref="product.product_template_form_view"/>
<field name="arch" type="xml">
<form position="attributes">
<attribute name="string">Product Variant ZZZ</attribute>
</form>
[...]
</field>
</record>
I would really need example, documentation about this concept.
How can a view inherit an other view from an other model?
I thought that a view that inherits an other view must have the SAME MODEL... No???
Update #1 (january 4th)
Old post : https://bugs.launchpad.net/openobject-server/+bug/702337