Files
Odoo-Tutorial/hr_managment/controllers/controllers.py
T
2025-06-06 17:38:33 +07:00

23 lines
775 B
Python

# -*- coding: utf-8 -*-
# from odoo import http
# class HrManagment(http.Controller):
# @http.route('/hr_managment/hr_managment', auth='public')
# def index(self, **kw):
# return "Hello, world"
# @http.route('/hr_managment/hr_managment/objects', auth='public')
# def list(self, **kw):
# return http.request.render('hr_managment.listing', {
# 'root': '/hr_managment/hr_managment',
# 'objects': http.request.env['hr_managment.hr_managment'].search([]),
# })
# @http.route('/hr_managment/hr_managment/objects/<model("hr_managment.hr_managment"):obj>', auth='public')
# def object(self, obj, **kw):
# return http.request.render('hr_managment.object', {
# 'object': obj
# })