تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
3141 أدوات العرض

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>

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
View inheritance تم الحل
1
مارس 20
2693
12
ديسمبر 18
33818
1
يوليو 16
6270
2
مارس 15
5286
0
مارس 15
3380