Hi all,
I have code for auto checkout in Odoo server:
I received an error:
SyntaxError : invalid syntax at line 9
Please help!
Thank you!
I have code for auto checkout in Odoo server:
1 2 3 4 5 6 7 8 9 10 11 12 13 |
model.cron_set_attedance_checkout() class hr_attendace(models.Model): _inherit = 'hr.attendance' @api .model def cron_set_attedance_checkout( self ): records = self .search([( 'check_out' , '=' , False ), ( 'check_in' , '!=' , False )]): for record in records: record.check_out = record.check_in |
SyntaxError : invalid syntax at line 9
1 |
records = self .search([( 'check_out' , '=' , False ), ( 'check_in' , '!=' , False )]): |

Please help!
Thank you!