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