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