# 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/', auth='public') # def object(self, obj, **kw): # return http.request.render('dashboard_survey.object', { # 'object': obj # })