Odoo Help

1

inheriting product class

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

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

0
sgeede
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"/>

</tree>

</field>

</record>


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


cheers    

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.

Register

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)

Stats

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