2
0

controllers.py 671 B

12345678910111213141516171819202122
  1. # -*- coding: utf-8 -*-
  2. # from odoo import http
  3. # class Depin(http.Controller):
  4. # @http.route('/depin/depin', auth='public')
  5. # def index(self, **kw):
  6. # return "Hello, world"
  7. # @http.route('/depin/depin/objects', auth='public')
  8. # def list(self, **kw):
  9. # return http.request.render('depin.listing', {
  10. # 'root': '/depin/depin',
  11. # 'objects': http.request.env['depin.depin'].search([]),
  12. # })
  13. # @http.route('/depin/depin/objects/<model("depin.depin"):obj>', auth='public')
  14. # def object(self, obj, **kw):
  15. # return http.request.render('depin.object', {
  16. # 'object': obj
  17. # })