Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
3662 Представления

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

Аватар
Отменить
Лучший ответ

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>

Аватар
Отменить
Related Posts Ответы Просмотры Активность
View inheritance Решено
1
мар. 20
3398
12
дек. 18
34705
1
июл. 16
7020
2
мар. 15
5896
0
мар. 15
3835