From dafb128c14135fdb4bd3652dd890dcdb9c8751fa Mon Sep 17 00:00:00 2001 From: Sapan Zaveri Date: Wed, 31 Jul 2019 13:25:10 +0000 Subject: [PATCH] [IMP] hr, hr_attendance: badge creation and few usability improvement hr: -rename btn 'generate badge ID' to 'generate' -When the badge ID is set, replace the button Generate by "Print Badge" hr_attendance: -Rename menu 'Manage Attendances' to "Manager" -Add a column "Work Hours" to attendee tree view -Add a
after "Welcome to" -add class text-muted on "or" -remove class "text-muted" on "scan your badge -Rename the primary btn into "Identify Manually" Task-2040884 Closes: #35473 Signed-off-by: Romain Libert (rli) --- addons/hr/__manifest__.py | 2 +- addons/hr/views/hr_employee_views.xml | 10 +++++++--- addons/hr_attendance/models/hr_employee.py | 1 + addons/hr_attendance/static/src/js/greeting_message.js | 6 ++++++ addons/hr_attendance/static/src/xml/attendance.xml | 9 +++++---- addons/hr_attendance/views/hr_attendance_view.xml | 3 ++- 6 files changed, 22 insertions(+), 9 deletions(-) diff --git a/addons/hr/__manifest__.py b/addons/hr/__manifest__.py index bcbd2fafdf9..78dbafe5450 100644 --- a/addons/hr/__manifest__.py +++ b/addons/hr/__manifest__.py @@ -30,6 +30,7 @@ 'views/hr_plan_views.xml', 'views/hr_employee_category_views.xml', 'views/hr_employee_public_views.xml', + 'report/hr_employee_badge.xml', 'views/hr_employee_views.xml', 'views/hr_department_views.xml', 'views/hr_views.xml', @@ -38,7 +39,6 @@ 'views/mail_channel_views.xml', 'views/res_users.xml', 'data/hr_data.xml', - 'report/hr_employee_badge.xml' ], 'demo': [ 'data/hr_demo.xml' diff --git a/addons/hr/views/hr_employee_views.xml b/addons/hr/views/hr_employee_views.xml index 3810e5e2312..0dca0f5a8f8 100644 --- a/addons/hr/views/hr_employee_views.xml +++ b/addons/hr/views/hr_employee_views.xml @@ -179,9 +179,13 @@ - - - @@ -116,6 +116,7 @@

Checked out at +