22 lines
811 B
Python
22 lines
811 B
Python
# from odoo import http
|
|
|
|
|
|
# class DashboardSurvey(http.Controller):
|
|
# @http.route('/dashboard_survey/dashboard_survey', auth='public')
|
|
# def index(self, **kw):
|
|
# return "Hello, world"
|
|
|
|
# @http.route('/dashboard_survey/dashboard_survey/objects', auth='public')
|
|
# def list(self, **kw):
|
|
# return http.request.render('dashboard_survey.listing', {
|
|
# 'root': '/dashboard_survey/dashboard_survey',
|
|
# 'objects': http.request.env['dashboard_survey.dashboard_survey'].search([]),
|
|
# })
|
|
|
|
# @http.route('/dashboard_survey/dashboard_survey/objects/<model("dashboard_survey.dashboard_survey"):obj>', auth='public')
|
|
# def object(self, obj, **kw):
|
|
# return http.request.render('dashboard_survey.object', {
|
|
# 'object': obj
|
|
# })
|
|
|