Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Can't inherit a crm fields in OpenERP 7.0 ?

By
Vikram
on 8/3/13, 3:08 AM 1,759 views

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?

1

Ahmed M.Elmubarak

--Ahmed M.Elmubarak--
2988
| 5 3 5
Sudan
--Ahmed M.Elmubarak--


Ahmed M.Elmubarak
On 8/3/13, 1:13 PM

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.

Vikram
on 8/5/13, 5:38 AM
0
Pramod Sharma
On 10/9/14, 8:15 AM

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

Inherit id is used to inherit the form view

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 8/3/13, 3:08 AM
Seen: 1759 times
Last updated: 3/16/15, 8:10 AM