Odoo Help


This community 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.


inheriting product class

on 9/1/15, 5:28 AM 300 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.


Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


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