Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
3760 Vizualizări

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

Imagine profil
Abandonează
Cel mai bun răspuns

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>

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
mar. 20
3630
12
dec. 18
34982
1
iul. 16
7199
2
mar. 15
6099
0
mar. 15
3966