Odoo Help


inheriting product class

aneesh ATEES Infomedia Pvt Ltd
on 9/1/15, 5:28 AM 650 views

hi, i  want to show  only 4 fileds from the product.template model in to my new custom module.how that possible ?

On 9/2/15, 4:53 AM

you should add Tree view inheritance in your module:.

<record id="product.product_template_tree_view" model="ir.ui.view">

<field name="name">product.template.product.tree</field>

<field name="model">product.template</field>

<field name="arch" type="xml">

<tree string="Product">

<field name="field1"/>

<field name="field2"/>

<field name="field3"/>

<field name="field4"/>




just remember to register your XML in your __openerp__.py.


About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 9/1/15, 5:28 AM
Seen: 650 times
Last updated: 9/2/15, 4:57 AM