controllers.py 693 B

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