-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontrollers.py
More file actions
20 lines (17 loc) · 821 Bytes
/
controllers.py
File metadata and controls
20 lines (17 loc) · 821 Bytes
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 TerraUnitprice(http.Controller):
# @http.route('/terra_unitprice/terra_unitprice/', auth='public')
# def index(self, **kw):
# return "Hello, world"
# @http.route('/terra_unitprice/terra_unitprice/objects/', auth='public')
# def list(self, **kw):
# return http.request.render('terra_unitprice.listing', {
# 'root': '/terra_unitprice/terra_unitprice',
# 'objects': http.request.env['terra_unitprice.terra_unitprice'].search([]),
# })
# @http.route('/terra_unitprice/terra_unitprice/objects/<model("terra_unitprice.terra_unitprice"):obj>/', auth='public')
# def object(self, obj, **kw):
# return http.request.render('terra_unitprice.object', {
# 'object': obj
# })