module library

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