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