跳至內容
選單
此問題已被標幟
1 回覆
2105 瀏覽次數

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.

頭像
捨棄
最佳答案

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

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
6月 21
3836
2
3月 15
5435
0
1月 24
1834
2
9月 23
8427
2
12月 20
5751