Files
Odoo-Tutorial/library/controllers/controllers.py
T
2025-03-08 01:26:56 +07:00

23 lines
701 B
Python

# -*- 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
# })