mirror of
https://github.com/bringout/oca-ocb-hr.git
synced 2026-04-27 04:51:59 +02:00
11 lines
317 B
Python
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);
|
|
""")
|