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

Hi,

I want to add fields currency and reason fields in crm lead, Refer the code. Fields created but not updated in view.

<data> <xpath expr="/form[@string='LeadsForm']/sheet/group/group/field[@name='partner_name']" position="after"> <field name="crm_currency_id"/> <field name="oppr_lost_reason"/> </xpath> </data>

Is that code correct?

الصورة الرمزية
إهمال
أفضل إجابة

Hello, did you specify the inhert_id ?, try this:

<openerp>
    <data>
        <record id = "your_record_id" model = "ir.ui.view">
            <field name = "name">your.record.id</field>
            <field name = "model">model.model</field>
            <field name = "inherit_id" ref = "crm.crm_case_form_view_leads"/>
            <field name = "arch" type = "xml">
                <xpath expr = "/form/sheet/group/group/field[@name = 'partner_name']" position = "after">...

I hope it could help you..

الصورة الرمزية
إهمال
الكاتب

Thanks a lot ! Ahmed. Allready i gave inherit_id in view file. Problem is on xpath, I solved it.

أفضل إجابة

<field name = "inherit_id" ref = "crm.crm_case_form_view_leads"/>

Inherit id is used to inherit the form view

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
2
مايو 25
1296
1
أبريل 25
1222
0
مارس 25
1367
0
مارس 25
1257
0
يناير 25
10