Repository
OCA/hr-attendance · module folder · Try on Runboat
Module version
1.0.1
Category
Human Resources
Folder size
0.12 MB
License
LGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/hr-attendance
Last tracking update
2026-08-07 08:42:58
Authors
Odoo Community Association (OCA), Odoo S.A., Tecnativa
Maintainers
Odoo Community Association (OCA), Odoo S.A., Tecnativa
Committers
Weblate, OCA-git-bot, oca-ci, Tom Tietze
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
hr_attendance_rest_time_included
Description
This module allows to define reasons why the attendance is not what
expected. Some example reasons are

- Could not access the system: Visit a customer
- Leave soon to pick up children
- The Hr manager amended the attendance and needs to tell

Code Analysis

Views touched (5)
XML IDNameModelTypeStatus
hr_attendance_reason_view_form hr.attendance.reason.form hr.attendance.reason form New
hr_attendance_reason_view_tree hr.attendance.reason.list hr.attendance.reason list New
hr_attendance_view_form hr.attendance.form hr.attendance form Inherits hr_attendance.hr_attendance_view_form
hr_attendance_view_tree hr.attendance.list hr.attendance list Inherits hr_attendance.view_attendance_tree
res_config_settings_view_form res.config.settings.view.form.inherit.hr.attendance.reason res.config.settings form Inherits hr_attendance.res_config_settings_view_form
HTTP endpoints (5)
Route(s)HandlerAuthTypeMethodsFlags
/hr_attendance_reason/get_reasons HrAttendance.attendance_get_reasons public json ALL sudo
/hr_attendance_reason/reason_settings HrAttendance.kiosk_reason_settings public json ALL
/hr_attendance/manual_selection HrAttendance.manual_selection_with_geolocation public json ALL
/hr_attendance/systray_check_in_out HrAttendance.systray_attendance user json ALL
/hr_attendance/attendance_user_data HrAttendance.user_attendance_data user json ALL
Models touched (5)

New fields (1)
  • attendance_reason_ids Many2many → hr.attendance.reason
    comodel_name='hr.attendance.reason' help='Specifies the reason for signing In/signing Out in case of less or extra hours.' string='Attendance Reason'
Public methods (0)

No public methods.

New fields (6)
  • action_type Selection
    help='Leave empty if it is independent' args: [('sign_in', 'Sign in'), ('sign_out', 'Sign out')]
  • code Char
    args: 'Reason Code'
  • company_id Many2one → res.company
    comodel_name='res.company' string='Company'
  • name Char
    help='Specifies the reason leaving soon or arriving late' index=True required=True string='Reason' translate=True
  • sequence Integer
  • show_on_attendance_screen Boolean
    string='Show on attendance screen?'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (4)
  • reason_on_attendance_screen_default_sign_in Many2one → hr.attendance.reason
    check_company=True domain=[('action_type', '=', 'sign_in'), ('show_on_attendance_screen', '=', True)] string='Default sign-in reason for attendance screen' args: 'hr.attendance.reason'
  • reason_on_attendance_screen_default_sign_out Many2one → hr.attendance.reason
    check_company=True domain=[('action_type', '=', 'sign_out'), ('show_on_attendance_screen', '=', True)] string='Default sign-out reason for attendance screen' args: 'hr.attendance.reason'
  • required_reason_on_attendance_screen Boolean
    string='Required reason on attendance screen'
  • show_reason_on_attendance_screen Boolean
    string='Show reasons on attendance screen'
Public methods (0)

No public methods.

New fields (4)
  • reason_on_attendance_screen_default_sign_in Many2one
    readonly=False related='company_id.reason_on_attendance_screen_default_sign_in'
  • reason_on_attendance_screen_default_sign_out Many2one
    readonly=False related='company_id.reason_on_attendance_screen_default_sign_out'
  • required_reason_on_attendance_screen Boolean
    readonly=False related='company_id.required_reason_on_attendance_screen'
  • show_reason_on_attendance_screen Boolean
    readonly=False related='company_id.show_reason_on_attendance_screen'
Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Status
Open migration PR — not merged yet for this version
CI status
green — ready to merge
Open since
34 days ago
Last activity
7 days ago
Repository
OCA/hr-attendance
Pull request
[19.0][MIG] hr_attendance_reason: Migration to 19.0 (#289)
Status
Open migration PR — not merged yet for this version
CI status
green — ready to merge
Open since
193 days ago
Last activity
16 days ago
Repository
OCA/hr-attendance
Pull request
19.0 mig hr attendance reason (#250)