From c08f5467028831ba551defbce12208cca7c47600 Mon Sep 17 00:00:00 2001 From: metatroncubeswdev Date: Thu, 7 May 2026 18:00:11 -0400 Subject: [PATCH] Fix Odoo dataset call_kw route override --- addons/dine360_dashboard/__manifest__.py | 2 +- addons/dine360_dashboard/controllers/cors.py | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) 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)