[FIX] project,hr_timesheet: fix kanban view structure issue in project task
before this commit, The Kanban view for project tasks includes a subtask button, a remaining hour timer, an activity button, and assignees in its lower section. However, when the task has subtasks and timesheet entries, these buttons appear in the Kanban view, causing the view to lose its structure somewhat. This commit includes reducing the right margin of the activity button and remaining hours to provide enough space for other elements in the kanban view. Additionally, the Lock Icon for private tasks has been given a left margin to separate it from the activity button task-3289941 closes odoo/odoo#126446 X-original-commit: eff472e39642bb29e5d4615fcfe1255c00ffc5ef Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>
This commit is contained in:
committed by
Yash Vaishnav
parent
8ae716b7d7
commit
9b26dc6018
@@ -197,7 +197,7 @@
|
||||
<t t-set="badge" t-value="'bg-danger'" t-if="record.remaining_hours.raw_value < 0"/>
|
||||
<t t-set="title" t-value="'Remaining days'" t-if="record.encode_uom_in_days.raw_value"/>
|
||||
<t t-set="title" t-value="'Remaining hours'" t-else=""/>
|
||||
<div t-attf-class="oe_kanban_align badge {{ badge }}" t-att-title="title">
|
||||
<div t-attf-class="oe_kanban_align badge {{ badge }} me-0" t-att-title="title">
|
||||
<field name="remaining_hours" widget="timesheet_uom" />
|
||||
</div>
|
||||
</t>
|
||||
|
||||
@@ -596,13 +596,13 @@
|
||||
<div class="o_kanban_record_bottom" t-if="!selection_mode">
|
||||
<div class="oe_kanban_bottom_left" t-att-class="['1_done', '1_canceled'].includes(record.state.raw_value) ? 'opacity-50' : ''">
|
||||
<field name="priority" widget="priority" style="margin-right: 5px;"/>
|
||||
<field name="activity_ids" widget="kanban_activity" style="padding-top: 1.5px;"/>
|
||||
<field name="activity_ids" widget="kanban_activity" style="padding-top: 1.5px; margin-right: 2px"/>
|
||||
<b t-if="record.rating_active.raw_value and record.rating_count.raw_value > 0" groups="project.group_project_rating">
|
||||
<span class="fa fa-fw fa-smile-o text-success rating_face" t-if="record.rating_avg.raw_value >= 3.66" title="Average Rating: Satisfied" role="img" aria-label="Happy face"/>
|
||||
<span class="fa fa-fw fa-meh-o text-warning rating_face" t-elif="record.rating_avg.raw_value >= 2.33" title="Average Rating: Okay" role="img" aria-label="Neutral face"/>
|
||||
<span class="fa fa-fw fa-frown-o text-danger rating_face" t-else="" title="Average Rating: Dissatisfied" role="img" aria-label="Sad face"/>
|
||||
</b>
|
||||
<a t-if="!record.project_id.raw_value" class="text-muted" style="font-size: 17px; padding-top: 1.5px;">
|
||||
<a t-if="!record.project_id.raw_value" class="text-muted" style="font-size: 17px; padding-top: 1.5px; margin-left: 1.5px">
|
||||
<i title="Private Task" class="fa fa-lock"/>
|
||||
</a>
|
||||
<t t-if="!record.is_private.raw_value and record.subtask_count.raw_value">
|
||||
|
||||
Reference in New Issue
Block a user