oca-hr/odoo-bringout-oca-hr-attendance-hr_attendance_autoclose/hr_attendance_autoclose/models/res_company.py
Ernad Husremovic dfcda4100c Move all OCA HR modules from oca-technical to dedicated oca-hr submodule
Reorganized 67 HR-related modules for better structure:
- Moved all odoo-bringout-oca-hr-* packages from packages/oca-technical/
- Now organized in dedicated packages/oca-hr/ submodule
- Includes attendance, expense, holiday, employee, and contract modules
- Maintains all module functionality while improving project organization

This creates a cleaner separation between general technical modules
and HR-specific functionality.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-30 17:11:28 +02:00

16 lines
526 B
Python

# Copyright 2018 ForgeFlow, S.L.
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html
from odoo import fields, models
class ResCompany(models.Model):
_inherit = "res.company"
attendance_maximum_hours_per_day = fields.Float(digits=(2, 2), default=11.0)
hr_attendance_autoclose_reason = fields.Many2one(
"hr.attendance.reason",
default=lambda self: self.env.ref(
"hr.attendance_reason.hr_attendance_reason_check_out",
raise_if_not_found=False,
),
)