odoo18/addons_extensions/cwf_timesheet/controllers/controller.py

10 lines
311 B
Python

from odoo import http
from odoo.http import request
class TimesheetController(http.Controller):
@http.route('/timesheet/form', auth='user', website=True)
def timesheet_form(self, **kw):
# This will render the template for the timesheet form
return request.render('timesheet_form', {})