From 1c993ea34ef19fbdd1ba4aa46fbba1b85c9b2d0d Mon Sep 17 00:00:00 2001 From: "Xavier Bol (xbo)" Date: Mon, 16 Oct 2023 11:54:22 +0200 Subject: [PATCH] [FIX] hr,hr_holidays: show icon even if employee has no user linked Before this commit, in the form view of employee, the presence status icon displayed in the top right of the avatar image is hidden if there is no last activity or no user linked to the employee. This commit changes the visibility condition to have the same visibility condition defined in the kanban view for the same icon. task-3556262 Part-of: odoo/odoo#138803 --- addons/hr/views/hr_employee_views.xml | 3 ++- addons/hr_holidays/views/hr_views.xml | 3 --- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/addons/hr/views/hr_employee_views.xml b/addons/hr/views/hr_employee_views.xml index e2dca6d8019..7a61d658452 100644 --- a/addons/hr/views/hr_employee_views.xml +++ b/addons/hr/views/hr_employee_views.xml @@ -79,7 +79,8 @@
- + +
diff --git a/addons/hr_holidays/views/hr_views.xml b/addons/hr_holidays/views/hr_views.xml index 3d1801bc204..edec6517d0f 100644 --- a/addons/hr_holidays/views/hr_views.xml +++ b/addons/hr_holidays/views/hr_views.xml @@ -119,9 +119,6 @@ - - not last_activity or not id -