oca-ocb-hr/odoo-bringout-oca-ocb-hr_holidays_attendance/hr_holidays_attendance/models/hr_attendance.py
Ernad Husremovic e1d89e11e3 19.0 vanilla
2026-03-09 09:31:00 +01:00

11 lines
317 B
Python

from odoo import models
class HrAttendance(models.Model):
_inherit = "hr.attendance"
def init(self):
super().init()
self.env.cr.execute("""
CREATE INDEX IF NOT EXISTS hr_attendance_check_in_check_out_employee_id ON hr_attendance (check_in, check_out, employee_id);
""")