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