i need form view like the view in base.res_partner_view.xml but i should use different model.so anyone can help me..
La domanda è stata contrassegnata
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>
Ti stai godendo la conversazione? Non leggere soltanto, partecipa anche tu!
Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!
Registrati| Post correlati | Risposte | Visualizzazioni | Attività | |
|---|---|---|---|---|
|
View inheritance
Risolto
|
|
1
mar 20
|
5740 | |
|
|
12
dic 18
|
38381 | ||
|
|
1
lug 16
|
9361 | ||
|
|
2
mar 15
|
8287 | ||
|
|
0
mar 15
|
5853 |