跳至內容
選單
此問題已被標幟
2 回覆
5451 瀏覽次數

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
5月 25
1272
1
4月 25
1210
0
3月 25
1355
0
3月 25
1242
0
1月 25
10