SaaSERP3/addons/scenario_manufacturing/controllers/controllers.py

22 lines
924 B
Python

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