i need form view like the view in base.res_partner_view.xml but i should use different model.so anyone can help me..
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Buchhaltung
- Lager
- PoS
- Project
- MRP
Diese Frage wurde gekennzeichnet
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>
Diskutieren Sie gerne? Treten Sie bei, statt nur zu lesen!
Erstellen Sie heute ein Konto, um exklusive Funktionen zu nutzen und mit unserer tollen Community zu interagieren!
RegistrierenVerknüpfte Beiträge | Antworten | Ansichten | Aktivität | |
---|---|---|---|---|
View inheritance
Gelöst
|
|
1
März 20
|
2692 | |
|
12
Dez. 18
|
33814 | ||
|
1
Juli 16
|
6268 | ||
|
2
März 15
|
5283 | ||
|
0
März 15
|
3380 |