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', 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(