Files
project_v19/attachment_size/controllers/controllers.py
T
2026-07-01 14:41:49 +07:00

22 lines
796 B
Python

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