22 lines
796 B
Python
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
|
|
# })
|
|
|