OSPPCloudUniversity3/addons/ospp_base/controllers/controllers.py

22 lines
729 B
Python

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