This commit is contained in:
XuanHuyen
2025-02-23 01:59:56 +07:00
parent 983b76ba74
commit 6baa855977
16 changed files with 388 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
# from odoo import http
# class School(http.Controller):
# @http.route('/school/school', auth='public')
# def index(self, **kw):
# return "Hello, world"
# @http.route('/school/school/objects', auth='public')
# def list(self, **kw):
# return http.request.render('school.listing', {
# 'root': '/school/school',
# 'objects': http.request.env['school.school'].search([]),
# })
# @http.route('/school/school/objects/<model("school.school"):obj>', auth='public')
# def object(self, obj, **kw):
# return http.request.render('school.object', {
# 'object': obj
# })