22 lines
750 B
Python
22 lines
750 B
Python
# 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
|
|
# })
|
|
|