# -*- coding: utf-8 -*- # from odoo import http # class TxSurvey(http.Controller): # @http.route('/tx_survey/tx_survey', auth='public') # def index(self, **kw): # return "Hello, world" # @http.route('/tx_survey/tx_survey/objects', auth='public') # def list(self, **kw): # return http.request.render('tx_survey.listing', { # 'root': '/tx_survey/tx_survey', # 'objects': http.request.env['tx_survey.tx_survey'].search([]), # }) # @http.route('/tx_survey/tx_survey/objects/', auth='public') # def object(self, obj, **kw): # return http.request.render('tx_survey.object', { # 'object': obj # })