Files
project_v19/db_data_sync/controllers/controllers.py
T

22 lines
750 B
Python
Raw Normal View History

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