From 3f8ee12ca041db5cae26fc53a58073152607c28b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A9lanie?= Date: Wed, 4 Oct 2023 07:04:47 +0000 Subject: [PATCH] [IMP] *: redesign employee kanban card * = hr, hr_holidays, hr_homeworking Change the disposition in Kanban card. Changes the behavior of the image in the kanban card: if an employee don't have an image the avatar's image is displayed. task : 3527398 closes odoo/odoo#138858 X-original-commit: c55dd60baa8aeb6d54a2dc7f1039be1e84113cf8 Related: odoo/upgrade#5314 Signed-off-by: Sofie Gvaladze (sgv) Signed-off-by: Xavier Bol (xbo) --- addons/hr/static/src/scss/hr.scss | 7 +++- addons/hr/views/hr_employee_public_views.xml | 23 ++++++++---- addons/hr/views/hr_employee_views.xml | 35 +++++++++++++------ .../views/hr_employee_views.xml | 11 ------ 4 files changed, 47 insertions(+), 29 deletions(-) diff --git a/addons/hr/static/src/scss/hr.scss b/addons/hr/static/src/scss/hr.scss index f45a7deb9ab..8c59a7d4624 100644 --- a/addons/hr/static/src/scss/hr.scss +++ b/addons/hr/static/src/scss/hr.scss @@ -42,7 +42,7 @@ .o_hr_employee_kanban .o_kanban_renderer { .o_employee_availability { - margin: 0 1px; + margin: unset !important; } .o_kanban_record_bottom { margin: 0 var(--KanbanRecord-padding-h); @@ -52,7 +52,12 @@ } } +.hr_tags { + margin-right: 20%; +} + .o_hr_kanban_record { + min-height: fit-content; .fa-2x { font-size: 1.6em; } diff --git a/addons/hr/views/hr_employee_public_views.xml b/addons/hr/views/hr_employee_public_views.xml index 29c04146d2a..42d140c4874 100644 --- a/addons/hr/views/hr_employee_public_views.xml +++ b/addons/hr/views/hr_employee_public_views.xml @@ -135,20 +135,29 @@
- - + + + + + +
+
+ + + +
    -
  • @@ -162,10 +171,12 @@
-
+
- +
+ +
diff --git a/addons/hr/views/hr_employee_views.xml b/addons/hr/views/hr_employee_views.xml index 67afc3ff9da..c8da8946b90 100644 --- a/addons/hr/views/hr_employee_views.xml +++ b/addons/hr/views/hr_employee_views.xml @@ -279,22 +279,32 @@
- + + + + + + +
+
+
+ +
+
- + + +
    -
  • -
  • - -
  • @@ -303,16 +313,19 @@
  • -
  • +
  • +
-
+
-
- +
+
+ +
diff --git a/addons/hr_homeworking/views/hr_employee_views.xml b/addons/hr_homeworking/views/hr_employee_views.xml index 566caa5dfc1..114a8a942b0 100644 --- a/addons/hr_homeworking/views/hr_employee_views.xml +++ b/addons/hr_homeworking/views/hr_employee_views.xml @@ -47,15 +47,4 @@ - - - hr.employee.kanban.inherit.homeworking - hr.employee - - - - - - -