Files
2026-07-01 14:41:49 +07:00

22 lines
885 B
Python

# 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/<model("youth_and_scholarship.youth_and_scholarship"):obj>', auth='public')
# def object(self, obj, **kw):
# return http.request.render('youth_and_scholarship.object', {
# 'object': obj
# })