Skip to content

Commit

Permalink
Merge pull request #54 from Escodoo/14.0-imp-epa_hr_attendances_overt…
Browse files Browse the repository at this point in the history
…ime_custom

[14.0][IMP] epa_hr_attendances_overtime_custom: attendance_sheet_id in to hr.employee.public
  • Loading branch information
marcelsavegnago committed Apr 29, 2024
2 parents 9fcc1a6 + 0cbcf2b commit f091f4c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions epa_hr_attendances_overtime_custom/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
from . import hr_attendance_sheet
from . import hr_employee_public
15 changes: 15 additions & 0 deletions epa_hr_attendances_overtime_custom/models/hr_employee_public.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright 2024 - TODAY, Kaynnan Lemes <kaynnan.lemes@escodoo.com.br>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).


from odoo import fields, models


class HrEmployeePublic(models.Model):
_inherit = "hr.employee.public"

# TODO: Include this field to allow public users to access hr_attendances_overtime.
# This needs to be reviewed later due to its implications.
attendance_sheet_id = fields.Many2one(
"hr.attendance.sheet", string="Attendance Sheet"
)

0 comments on commit f091f4c

Please sign in to comment.