-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontrollers.py
20 lines (19 loc) · 938 Bytes
/
controllers.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# -*- coding: utf-8 -*-
from openerp import http
# class DefaultDataDemo(http.Controller):
# @http.route('/physical_access_control/physical_access_control/', auth='public')
# def index(self, **kw):
# return "Hello, world"
#
# @http.route('/physical_access_control/physical_access_control/objects/', auth='public')
# def list(self, **kw):
# return http.request.render('physical_access_control.listing', {
# 'root': '/physical_access_control/physical_access_control',
# 'objects': http.request.env['physical_access_control.physical_access_control'].search([]),
# })
#
# @http.route('/physical_access_control/physical_access_control/objects/<model("physical_access_control.physical_access_control"):obj>/', auth='public')
# def object(self, obj, **kw):
# return http.request.render('physical_access_control.object', {
# 'object': obj
# })