[IMP] website_crm_partner_assign: improve lead kanban card view
Currently, if we have both customer and assigned partner names,
they are displayed in a single line separated by an arrow icon.
However, if we have long customer name, arrow icon and assigned
partner name are not visible on card.
This commit improves the display of names by making a few changes
- breaking the line before the arrow icon
- displaying both customer and assigned partner name with text overflow
- adding a tooltip on customer and partner names
- improving tooltip on the arrow icon
taskID-2763930
closes odoo/odoo#85264
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
This commit is contained in:
@@ -146,15 +146,15 @@
|
||||
<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>
|
||||
<span class="o_text_overflow"
|
||||
t-esc="record.partner_id.value"
|
||||
t-att-title="record.partner_id.value"
|
||||
t-if="record.partner_id.value"/>
|
||||
<span class="o_text_overflow" t-if="record.partner_assigned_id.value">
|
||||
<i class="fa fa-arrow-circle-right" aria-label="Assigned Partner" title="Assigned Partner"/>
|
||||
<span t-att-title="record.partner_assigned_id.value"
|
||||
t-esc="record.partner_assigned_id.value"/>
|
||||
</span>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
Reference in New Issue
Block a user