Files
project_v19/address_kh/controllers/controllers.py
T

22 lines
721 B
Python
Raw Normal View History

2026-07-01 14:41:49 +07:00
# 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
# })