22 lines
848 B
Python
22 lines
848 B
Python
# -*- coding: utf-8 -*-
|
|
# from odoo import http
|
|
|
|
|
|
# class FilePreviewTest(http.Controller):
|
|
# @http.route('/file_preview_test/file_preview_test', auth='public')
|
|
# def index(self, **kw):
|
|
# return "Hello, world"
|
|
|
|
# @http.route('/file_preview_test/file_preview_test/objects', auth='public')
|
|
# def list(self, **kw):
|
|
# return http.request.render('file_preview_test.listing', {
|
|
# 'root': '/file_preview_test/file_preview_test',
|
|
# 'objects': http.request.env['file_preview_test.file_preview_test'].search([]),
|
|
# })
|
|
|
|
# @http.route('/file_preview_test/file_preview_test/objects/<model("file_preview_test.file_preview_test"):obj>', auth='public')
|
|
# def object(self, obj, **kw):
|
|
# return http.request.render('file_preview_test.object', {
|
|
# 'object': obj
|
|
# })
|