From 97429e557f17efa8dbc9fe02205f0b6a8561f2da Mon Sep 17 00:00:00 2001 From: damr Date: Wed, 18 Oct 2023 15:03:49 +0000 Subject: [PATCH] [FIX] hr_timesheet: fix display of empty allocated time in studio This commit's purpose is to fix the display of the default field when entering studio mode from a task form with no allocated time. Step to reproduce : -open project -open office design -create new task/select a task with 0 allocated hours -open studio the display of the field 'allocated time' is partially hidden by the span 0% Source of the bug: the widget timesheet_uom_no_toggle has a max width of 7CH, which is too little to allow the full display of the default name. Solution: Create and add a new scss class which is only active in studio mode. Version affected: saas-16.2 to master task - 3553101 https://www.odoo.com/web#id=3553101&menu_id=4720&cids=1&action=333&active_id=4105&model=project.task&view_type=form closes odoo/odoo#152159 X-original-commit: 30092f7a67579551ac3fb7a7d5668699cae8b3aa Signed-off-by: Xavier Bol (xbo) --- addons/hr_timesheet/static/src/scss/timesheets_task_form.scss | 4 ++++ addons/hr_timesheet/views/project_task_views.xml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/addons/hr_timesheet/static/src/scss/timesheets_task_form.scss b/addons/hr_timesheet/static/src/scss/timesheets_task_form.scss index 6fe10fc2267..5782c838192 100644 --- a/addons/hr_timesheet/static/src/scss/timesheets_task_form.scss +++ b/addons/hr_timesheet/static/src/scss/timesheets_task_form.scss @@ -1,3 +1,7 @@ .o_project_kanban .o_kanban_renderer .oe_kanban_align.badge { color: inherit; } + +.o_web_studio_form_view_editor .o_field_widget.o_web_studio_widget_empty.o_task_planned_hours { + max-width: 70ch; +} diff --git a/addons/hr_timesheet/views/project_task_views.xml b/addons/hr_timesheet/views/project_task_views.xml index 06be07a7c89..e64d8668049 100644 --- a/addons/hr_timesheet/views/project_task_views.xml +++ b/addons/hr_timesheet/views/project_task_views.xml @@ -19,7 +19,7 @@