From 93da78980ff928dac8116fa3a5a67154badba8bb Mon Sep 17 00:00:00 2001 From: Haresh Shyara Date: Wed, 28 Dec 2016 17:36:24 +0530 Subject: [PATCH] [IMP] hr_attendance: Improve the settings form view --- addons/hr_attendance/models/res_config.py | 7 +-- .../hr_attendance/views/res_config_view.xml | 46 +++++++++++++++++-- 2 files changed, 46 insertions(+), 7 deletions(-) diff --git a/addons/hr_attendance/models/res_config.py b/addons/hr_attendance/models/res_config.py index d2f06ce6cb5..917a3e25c5f 100644 --- a/addons/hr_attendance/models/res_config.py +++ b/addons/hr_attendance/models/res_config.py @@ -7,6 +7,7 @@ from odoo import fields, models class BaseConfigSettings(models.TransientModel): _inherit = 'base.config.settings' - group_attendance_use_pin = fields.Selection([(0, 'Employees do not need to enter their PIN to check in manually in the "Kiosk Mode".'), - (1, 'Employees must enter their PIN to check in manually in the "Kiosk Mode".')], - string='Employee PIN', help='Enable or disable employee PIN identification at check in', implied_group="hr_attendance.group_hr_attendance_use_pin") + group_attendance_use_pin = fields.Boolean(string='Employee PIN', + implied_group="hr_attendance.group_hr_attendance_use_pin") + module_hr_timesheet = fields.Boolean(string='Timesheets') + module_hr_holidays = fields.Boolean(string='Leave Management') diff --git a/addons/hr_attendance/views/res_config_view.xml b/addons/hr_attendance/views/res_config_view.xml index 9e1b9b5ef4c..fcd5bf31638 100644 --- a/addons/hr_attendance/views/res_config_view.xml +++ b/addons/hr_attendance/views/res_config_view.xml @@ -7,12 +7,50 @@
-
- - - + +

Check-In/Out

+
+
+
+ +
+
+
+
+
+

Recommended Apps

+
+
+
+ +
+
+
+
+
+
+ +
+
+
+
+
+