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