From dc7eee28e4619f13b4cc37685990ee420f41810b Mon Sep 17 00:00:00 2001 From: Rivo Lalaina Date: Wed, 23 Jul 2025 15:25:32 +0300 Subject: [PATCH 1/2] [14.0][FIX] base_extended_security : inheritance --- base_extended_security/controllers/crud.py | 3 ++- base_extended_security/controllers/search.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/base_extended_security/controllers/crud.py b/base_extended_security/controllers/crud.py index a98ebd93..1b080d97 100644 --- a/base_extended_security/controllers/crud.py +++ b/base_extended_security/controllers/crud.py @@ -6,9 +6,10 @@ from odoo.exceptions import ValidationError from odoo.http import request from odoo.tools.func import lazy_property +from odoo import http -class DataSetWithExtendedSecurity(DataSet): +class DataSetWithExtendedSecurity(DataSet , http.Controller): def _call_kw(self, model, method, args, kwargs): verifier = _ExtendedSecurityVerifier(model, method, args, kwargs) diff --git a/base_extended_security/controllers/search.py b/base_extended_security/controllers/search.py index b657bf66..c6f705a9 100644 --- a/base_extended_security/controllers/search.py +++ b/base_extended_security/controllers/search.py @@ -4,6 +4,7 @@ from odoo.addons.web.controllers.main import DataSet from odoo.http import request from odoo.osv.expression import AND +from odoo import http SEARCH_METHODS = [ 'name_search', @@ -32,7 +33,7 @@ } -class DataSetWithExtendedSearchSecurity(DataSet): +class DataSetWithExtendedSearchSecurity(DataSet , http.Controller): """Add extra security domains to search operations.""" def do_search_read( From 0d8356a6d510d445efae6f12e48205528704f2ea Mon Sep 17 00:00:00 2001 From: Abdellatif BENZBIRIA Date: Wed, 23 Jul 2025 16:17:28 +0100 Subject: [PATCH 2/2] Update __manifest__.py --- base_extended_security/__manifest__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base_extended_security/__manifest__.py b/base_extended_security/__manifest__.py index f501de56..e00ccf12 100644 --- a/base_extended_security/__manifest__.py +++ b/base_extended_security/__manifest__.py @@ -3,7 +3,7 @@ { 'name': 'Base Extended Security', - 'version': '1.2.0', + 'version': '14.0.1.3.0', 'author': 'Numigi', 'maintainer': 'Numigi', 'license': 'LGPL-3',