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