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