Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
2108 Zobrazení

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šit
Nejlepší odpověď

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šit
Related Posts Odpovědi Zobrazení Aktivita
1
čvn 21
3836
2
bře 15
5435
0
led 24
1835
2
zář 23
8427
2
pro 20
5751