Files
public/mklab_dms_document/controllers/controllers.py

22 lines
866 B
Python

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