Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
5534 Lượt xem

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?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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..

Ảnh đại diện
Huỷ bỏ
Tác giả

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

Câu trả lời hay nhất

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

Inherit id is used to inherit the form view

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 8 25
284
2
thg 5 25
1385
1
thg 4 25
1295
0
thg 3 25
1403
0
thg 3 25
1314