Search code examples
pythonodootime-and-attendance

Odoo 13' solution to solve about the employee forget to checkout in odoo attendance


I would like to ask about the auto checkout in attendance odoo, because employees often forget to check out. Thus, I would like to mark their checkout automatically.

How is the code and where I can insert this code?

Thank you!


Solution

  • Remove the ":" at the end of the line.

    records = self.search([('check_out', '=', False), ('check_in', '!=', False)])