diff --git a/auth_session_timeout/__manifest__.py b/auth_session_timeout/__manifest__.py index 48c03c8250..ac74bf46a7 100644 --- a/auth_session_timeout/__manifest__.py +++ b/auth_session_timeout/__manifest__.py @@ -14,7 +14,7 @@ "website": "https://github.com/OCA/server-auth", "category": "Tools", "development_status": "Production/Stable", - "version": "16.0.1.0.0", + "version": "17.0.1.0.0", "license": "AGPL-3", "data": ["data/ir_config_parameter_data.xml"], "installable": True, diff --git a/auth_session_timeout/models/ir_config_parameter.py b/auth_session_timeout/models/ir_config_parameter.py index 17f693770a..1f16642aee 100644 --- a/auth_session_timeout/models/ir_config_parameter.py +++ b/auth_session_timeout/models/ir_config_parameter.py @@ -36,7 +36,7 @@ def _auth_timeout_get_parameter_ignored_urls(self): return urls.split(",") def write(self, vals): - res = super(IrConfigParameter, self).write(vals) + res = super().write(vals) self._auth_timeout_get_parameter_delay.clear_cache( self.filtered(lambda r: r.key == DELAY_KEY), ) diff --git a/auth_session_timeout/models/ir_http.py b/auth_session_timeout/models/ir_http.py index 0316326121..bc2325293c 100644 --- a/auth_session_timeout/models/ir_http.py +++ b/auth_session_timeout/models/ir_http.py @@ -8,7 +8,7 @@ class IrHttp(models.AbstractModel): @classmethod def _authenticate(cls, endpoint): - res = super(IrHttp, cls)._authenticate(endpoint=endpoint) + res = super()._authenticate(endpoint=endpoint) if ( request and request.session diff --git a/auth_session_timeout/tests/test_ir_config_parameter.py b/auth_session_timeout/tests/test_ir_config_parameter.py index abb60581ea..fa051b2dfa 100644 --- a/auth_session_timeout/tests/test_ir_config_parameter.py +++ b/auth_session_timeout/tests/test_ir_config_parameter.py @@ -7,7 +7,7 @@ class TestIrConfigParameter(common.TransactionCase): def setUp(self): - super(TestIrConfigParameter, self).setUp() + super().setUp() self.db = self.env.cr.dbname self.param_obj = self.env["ir.config_parameter"] self.data_obj = self.env["ir.model.data"] @@ -27,7 +27,7 @@ def test_check_session_param_urls(self): class TestIrConfigParameterCaching(common.TransactionCase): def setUp(self): - super(TestIrConfigParameterCaching, self).setUp() + super().setUp() self.db = self.env.cr.dbname self.param_obj = self.env["ir.config_parameter"] self.get_param_called = False @@ -41,7 +41,7 @@ def get_param(*args, **kwargs): self.param_obj._patch_method("get_param", get_param) def tearDown(self): - super(TestIrConfigParameterCaching, self).tearDown() + super().tearDown() self.param_obj._revert_method("get_param") def test_auth_timeout_get_parameter_delay_cache(self): diff --git a/auth_session_timeout/tests/test_res_users.py b/auth_session_timeout/tests/test_res_users.py index 657adb441e..53adf72f1d 100644 --- a/auth_session_timeout/tests/test_res_users.py +++ b/auth_session_timeout/tests/test_res_users.py @@ -15,7 +15,7 @@ class EndTestException(Exception): class TestResUsers(TransactionCase): def setUp(self): - super(TestResUsers, self).setUp() + super().setUp() self.ResUsers = self.env["res.users"] @contextmanager