[IMP] website_crm_partner_assign: show assigned partner on opportunity kanban
This commit display the assigned parter on kanban view of opportunities next to the partner (if assigned parter is set). For example, if the customer name is 'Main Contact' and assigned partner's name is 'Assigned Contact', it will appear in following format: Main Contact → Assigned Contact If there is no customer and only assignd parner, it will look like → Assigned Contact Note that if there is only customer, or no assigned partner and no customer, nothing changes in the view. taskID-2443894 closes https://github.com/odoo/odoo/pull/67524 Part-of: odoo/odoo#67524
This commit is contained in:
@@ -136,4 +136,26 @@
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="crm_lead_view_kanban" model="ir.ui.view">
|
||||
<field name="name">crm.lead.view.kanban.inherit.website.crm.partner.assign</field>
|
||||
<field name="model">crm.lead</field>
|
||||
<field name="inherit_id" ref="crm.crm_case_kanban_view_leads"/>
|
||||
<field name="arch" type="xml">
|
||||
<field name="user_id" position="after">
|
||||
<field name="partner_assigned_id"/>
|
||||
</field>
|
||||
<xpath expr="//span[@t-esc='record.partner_id.value']" position="replace">
|
||||
<t t-if="record.partner_id.value or record.partner_assigned_id.value">
|
||||
<span class="o_text_overflow">
|
||||
<t t-esc="record.partner_id.value"/>
|
||||
<t t-if="record.partner_assigned_id.value">
|
||||
<i class="fa fa-arrow-circle-right" aria-label="Arrow icon" title="Arrow"/>
|
||||
<t t-esc="record.partner_assigned_id.value"/>
|
||||
</t>
|
||||
</span>
|
||||
</t>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
|
||||
Reference in New Issue
Block a user