main.py 348 B

12345678910111213
  1. # -*- coding: utf-8 -*-
  2. # Part of Odoo. See LICENSE file for full copyright and licensing details.
  3. from odoo import http
  4. from odoo.http import request
  5. class HrAttendance(http.Controller):
  6. @http.route('/hr_attendance/kiosk_keepalive', auth='user', type='json')
  7. def kiosk_keepalive(self):
  8. request.session.touch()
  9. return {}