diff --git a/hr_attendance_reason/models/res_company.py b/hr_attendance_reason/models/res_company.py index 406e92ae..09d20a33 100644 --- a/hr_attendance_reason/models/res_company.py +++ b/hr_attendance_reason/models/res_company.py @@ -18,7 +18,7 @@ class ResCompany(models.Model): string="Default sign-in reason for attendance screen", domain=[ ("action_type", "=", "sign_in"), - ("show_on_attendance_screen", "=", True) + ("show_on_attendance_screen", "=", True), ], check_company=True, ) @@ -27,7 +27,7 @@ class ResCompany(models.Model): string="Default sign-out reason for attendance screen", domain=[ ("action_type", "=", "sign_out"), - ("show_on_attendance_screen", "=", True) + ("show_on_attendance_screen", "=", True), ], check_company=True, ) diff --git a/hr_attendance_reason/models/res_config_settings.py b/hr_attendance_reason/models/res_config_settings.py index abfb17d5..0acd78d0 100644 --- a/hr_attendance_reason/models/res_config_settings.py +++ b/hr_attendance_reason/models/res_config_settings.py @@ -18,5 +18,5 @@ class ResConfigSettings(models.TransientModel): ) reason_on_attendance_screen_default_sign_out = fields.Many2one( related="company_id.reason_on_attendance_screen_default_sign_out", - readonly=False + readonly=False, ) diff --git a/hr_attendance_reason/static/src/components/attendance_menu/attendance_menu.js b/hr_attendance_reason/static/src/components/attendance_menu/attendance_menu.js index ac8842d9..94f0604a 100644 --- a/hr_attendance_reason/static/src/components/attendance_menu/attendance_menu.js +++ b/hr_attendance_reason/static/src/components/attendance_menu/attendance_menu.js @@ -60,7 +60,7 @@ patch(ActivityMenu.prototype, { { enableHighAccuracy: true, } - ) + ); } else { await rpc("/hr_attendance/systray_check_in_out", { // CHANGE: add attendance reason as parameter to rpc call diff --git a/hr_attendance_reason/views/res_config_settings_view.xml b/hr_attendance_reason/views/res_config_settings_view.xml index f236f90f..42a6866d 100644 --- a/hr_attendance_reason/views/res_config_settings_view.xml +++ b/hr_attendance_reason/views/res_config_settings_view.xml @@ -36,8 +36,8 @@