diff --git a/addons/dine360_dashboard/__manifest__.py b/addons/dine360_dashboard/__manifest__.py index 62e7e1b..1a79466 100644 --- a/addons/dine360_dashboard/__manifest__.py +++ b/addons/dine360_dashboard/__manifest__.py @@ -1,6 +1,6 @@ { 'name': 'Dine360 Dashboard', - 'version': '1.0.2', + 'version': '1.0.3', 'license': 'LGPL-3', 'category': 'Website', 'summary': 'Redirect login to home and show icon grid', diff --git a/addons/dine360_dashboard/controllers/cors.py b/addons/dine360_dashboard/controllers/cors.py index 5b43d33..86bfc9a 100644 --- a/addons/dine360_dashboard/controllers/cors.py +++ b/addons/dine360_dashboard/controllers/cors.py @@ -1,6 +1,5 @@ from odoo import http from odoo.http import request -import json class CorsHandler(http.Controller): # This specifically targets the authentication endpoint for CORS @@ -9,7 +8,3 @@ class CorsHandler(http.Controller): request.session.authenticate(db, login, password) return request.env['ir.http'].session_info() - # Generic search_read for the dashboard apps - @http.route('/web/dataset/call_kw', type='json', auth="user", cors="*") - def call_kw_cors(self, model, method, args, kwargs, path=None): - return request.env[model].with_user(request.uid).call_kw(method, args, kwargs)