Inheritance from product of both a tree and form-view

Asked by Anders Wallenquist

I have added a few fields to the product.product-object using inheritance. I can view and update in the form-view, but when I add the same fields to the tree-view openerp does not accept the new view.
Right now there is a remark around the part thats not functional.

I'm using 5.0.9 of openerp.

<openerp>
<data>
<!--
<record id="product_product_tree" model="ir.ui.view">
<field name="name">product.product.tree.inherit</field>
<field name="model">product.product</field>
<field name="inherit_id" ref="product.product_product_tree"/>
<field name="arch" type="xml">
<field name="name" position="after">
<field name="su_articlecode"/>
<field name="ica_gln"/>
</field>
</field>
</record>
-->
<record id="product_normal_form_view" model="ir.ui.view">
<field name="name">product.normal.form.inherit</field>
<field name="model">product.product</field>
<field name="inherit_id" ref="product.product_normal_form_view"/>
<field name="arch" type="xml">
<field name="ean13" position="after">
<field name="ean14"/>
<field name="su_articlecode"/>
<field name="packagetype"/>
<field name="ica_gln"/>
</field>
</field>
</record>

</data>
</openerp>

Question information

Language:
English Edit question
Status:
Solved
For:
Odoo Addons (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Solved by:
Anders Wallenquist
Solved:
Last query:
Last reply:
Revision history for this message
Anders Wallenquist (aw) said :
#1

product.product_product_tree
should be replaced by
product.product_product_tree_view
_________________
Lorenzo Battistini
http://www.albatos.com