Files

22 lines
796 B
Python
Raw Permalink Normal View History

2026-07-01 14:41:49 +07:00
# from odoo import http
# class ProjectInherit(http.Controller):
# @http.route('/project_inherit/project_inherit', auth='public')
# def index(self, **kw):
# return "Hello, world"
# @http.route('/project_inherit/project_inherit/objects', auth='public')
# def list(self, **kw):
# return http.request.render('project_inherit.listing', {
# 'root': '/project_inherit/project_inherit',
# 'objects': http.request.env['project_inherit.project_inherit'].search([]),
# })
# @http.route('/project_inherit/project_inherit/objects/<model("project_inherit.project_inherit"):obj>', auth='public')
# def object(self, obj, **kw):
# return http.request.render('project_inherit.object', {
# 'object': obj
# })