[IMP] project: increase task kanban readability
The goal of this commit is to provide better readability on kanban cards. It will: - move deadline to the bottom of the card - add a line-break between project and customer - display task deadline not in italic related task 2009563 closes odoo/odoo#34599 Signed-off-by: Jérome Maes (jem) <jem@openerp.com>
This commit is contained in:
@@ -567,8 +567,8 @@
|
||||
<strong class="o_kanban_record_title"><field name="name"/></strong><br/>
|
||||
<small class="o_kanban_record_subtitle text-muted">
|
||||
<field name="project_id" invisible="context.get('default_project_id', False)"/>
|
||||
<t t-if="record.date_deadline.raw_value and record.date_deadline.raw_value lt (new Date())" t-set="red">oe_kanban_text_red</t>
|
||||
<span t-attf-class="#{red || ''}"><i><field name="date_deadline"/></i></span>
|
||||
</small>
|
||||
<small class="o_kanban_record_subtitle text-muted">
|
||||
<t t-if="record.partner_id.value"><span><field name="partner_id"/></span></t>
|
||||
<t t-else="record.email_from.raw_value"><span><field name="email_from"/></span></t>
|
||||
</small>
|
||||
@@ -605,6 +605,9 @@
|
||||
<span style="font-weight:bold;" class="fa fa-fw mt4 fa-meh-o text-warning" t-if="record.rating_last_value.value == 5" title="Latest Rating: Not Satisfied" role="img" aria-label="Neutral face"/>
|
||||
<span style="font-weight:bold;" class="fa fa-fw mt4 fa-frown-o text-danger" t-if="record.rating_last_value.value == 1" title="Latest Rating: Higly Dissatisfied" role="img" aria-label="Sad face"/>
|
||||
</b>
|
||||
<t t-if="record.date_deadline.raw_value and moment(record.date_deadline.raw_value.toISOString()).startOf('day') lt moment().startOf('day')" t-set="deadline_class">oe_kanban_text_red</t>
|
||||
<t t-elif="record.date_deadline.raw_value and moment(record.date_deadline.raw_value.toISOString()).startOf('day') lt moment().endOf('day')" t-set="deadline_class">text-warning font-weight-bold</t>
|
||||
<span t-attf-class="#{deadline_class || ''}"><field name="date_deadline"/></span>
|
||||
</div>
|
||||
<div class="oe_kanban_bottom_right" t-if="!selection_mode">
|
||||
<field name="kanban_state" widget="state_selection" groups="base.group_user"/>
|
||||
|
||||
Reference in New Issue
Block a user