Skip to Content
मेन्यू
This question has been flagged
1 Reply
2112 Views

Greeting!


My question would be how can I add more contacts to contact information to the CRM notebook, for example, an Add new button? 
( https://i.postimg.cc/Rh6srhPc/odoo.png)

I need to change something in the crm_lead_views.xml file?

 

Thanks for the answers.

Avatar
Discard
Best Answer

Hi,

1. As per the requirement, we have the option to add multiple contact details in the contact module. in the same way, we can create this functionality in the CRM module

we can use the one2many field in the CRM module
child_ids = fields.One2many('res.partner.category', 'parent_id', string='Child Tags') and added the field in the xml to inherit the CRM view
<record id="crm_lead_view_form" model="ir.ui.view">
<field
name="name">http://crm.lead.view.form.inheirt.module.name" target="_blank">crm.lead.view.form.inheirt.module.name</field>
    <field name="model">crm.lead</field>
    <field name="inherit_id" ref="crm.crm_lead_view_form"/>
    <field name="arch" type="xml">
       
        <xpath expr="//page[@name='lead']/group/group/field[@name='partner_name']" position="replace">
            <group>
                <field name="child_ids"/>
                //you need the kanban view you can use the same view in the res.partner model
            </group>

        </xpath>

    </field>
</record>


Hope it helps

Avatar
Discard
Related Posts Replies Views Activity
1
जून 21
3836
2
मार्च 15
5437
0
जन॰ 24
1836
2
सित॰ 23
8428
2
दिस॰ 20
5753