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