Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
5422 Widoki

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?

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Autor

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

Najlepsza odpowiedź

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

Inherit id is used to inherit the form view

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
maj 25
1252
1
kwi 25
1152
0
mar 25
1328
0
mar 25
1200
0
sty 25
10