Odoo Help

0

view inheritance in openerp

By
shafeequemonp
on 3/7/14, 7:59 AM 1,077 views

i need form view like the view in base.res_partner_view.xml but i should use different model.so anyone can help me..

0
Kazim Mirza
On 3/7/14, 8:08 AM

you have to inherit the resource partner class on your new module like this way: _inherit = 'res.partner' and in a columns section you can add the fields which you wanted in your module.

now you have to inherit the resource partner view also in xml like this way.. <record id="view_partner_form" model="ir.ui.view"> <field name="name">res.partner.form</field> <field name="model">res.partner</field> <field name="inherit_id" ref="base.view_partner_form"/> <field name="arch" type="xml">

now you have to give your custom filed position in to this view like this

<field name="email" position="replace"> <field name="gmail"/> <field name="skype"/> </field>

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: 3/7/14, 7:59 AM
Seen: 1077 times
Last updated: 3/16/15, 8:10 AM