Skip to Content
Menu
This question has been flagged
1 Odpoveď
2111 Zobrazenia

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
Zrušiť
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
Zrušiť
Related Posts Replies Zobrazenia Aktivita
1
jún 21
3836
2
mar 15
5437
0
jan 24
1836
2
sep 23
8428
2
dec 20
5753