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