diff --git a/README.md b/README.md
index 65b95919ce..e489d9cc2b 100644
--- a/README.md
+++ b/README.md
@@ -43,10 +43,10 @@ addon | version | maintainers | summary
[cross_connect_client](cross_connect_client/) | 18.0.1.0.0 |
| Cross Connect Client allows to connect to a Cross Connect Server enabled odoo instance.
[cross_connect_server](cross_connect_server/) | 18.0.1.0.0 |
| Cross Connect Server allows Cross Connect Client to connect to it.
[impersonate_login](impersonate_login/) | 18.0.1.1.2 |
| tools
-[password_security](password_security/) | 18.0.1.0.0 | | Allow admin to set password security requirements.
+[password_security](password_security/) | 18.0.1.0.1 | | Allow admin to set password security requirements.
[user_log_view](user_log_view/) | 18.0.1.0.0 |
| Allow to see user's actions log
[users_ldap_mail](users_ldap_mail/) | 18.0.1.0.0 |
| LDAP mapping for user name and e-mail
-[vault](vault/) | 18.0.1.0.5 | | Password vault integration in Odoo
+[vault](vault/) | 18.0.1.0.6 | | Password vault integration in Odoo
[vault_share](vault_share/) | 18.0.1.0.0 | | Implementation of a mechanism to share secrets
[//]: # (end addons)
diff --git a/password_security/README.rst b/password_security/README.rst
index 49a3a21c3f..78c8c9501b 100644
--- a/password_security/README.rst
+++ b/password_security/README.rst
@@ -11,7 +11,7 @@ Password Security
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
- !! source digest: sha256:cb2e7adb9bb3013bc69c718c2e113f49b4cfa22dbef9264db9e3cec14fb819e7
+ !! source digest: sha256:206f43f4d3acd323ae12e847bbddf69684f11c2964ce06c5903cdfa8cdda0a19
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
diff --git a/password_security/__manifest__.py b/password_security/__manifest__.py
index 293dc6aad1..b0e105bc53 100644
--- a/password_security/__manifest__.py
+++ b/password_security/__manifest__.py
@@ -5,7 +5,7 @@
{
"name": "Password Security",
"summary": "Allow admin to set password security requirements.",
- "version": "18.0.1.0.0",
+ "version": "18.0.1.0.1",
"author": "LasLabs, "
"Onestein, "
"Kaushal Prajapati, "
diff --git a/password_security/models/res_users.py b/password_security/models/res_users.py
index 8ee63b5aca..46f1fb1258 100644
--- a/password_security/models/res_users.py
+++ b/password_security/models/res_users.py
@@ -175,11 +175,13 @@ def _check_password_history(self, password):
pwd_params = self._get_all_password_params()
for user in self:
if not pwd_params["history"]: # disabled
- recent_passes = self.env["res.users.pass.history"]
+ recent_passes = self.sudo().env["res.users.pass.history"]
elif pwd_params["history"] < 0: # unlimited
- recent_passes = user.password_history_ids
+ recent_passes = user.sudo().password_history_ids
else:
- recent_passes = user.password_history_ids[: pwd_params["history"]]
+ recent_passes = user.sudo().password_history_ids[
+ : pwd_params["history"]
+ ]
if recent_passes.filtered(
lambda r: crypt.verify(password, r.password_crypt)
):
diff --git a/password_security/static/description/index.html b/password_security/static/description/index.html
index 3b7c92d0f4..0ae1003bc6 100644
--- a/password_security/static/description/index.html
+++ b/password_security/static/description/index.html
@@ -372,7 +372,7 @@
This module allows admin to set company-level password security diff --git a/vault/README.rst b/vault/README.rst index 32ecdee3b4..61ffecb285 100644 --- a/vault/README.rst +++ b/vault/README.rst @@ -11,7 +11,7 @@ Vault !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:cd6fbe00ed61e7b27563a46609de0beae916f3bf603cec979e5176ebdc7628bb + !! source digest: sha256:a0f7e4a00b4b5a100334bc02018711e2c0156aa25704abd2ec07b70772ff03d6 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png diff --git a/vault/__manifest__.py b/vault/__manifest__.py index e22297f313..5f2041371d 100644 --- a/vault/__manifest__.py +++ b/vault/__manifest__.py @@ -5,7 +5,7 @@ "name": "Vault", "summary": "Password vault integration in Odoo", "license": "AGPL-3", - "version": "18.0.1.0.5", + "version": "18.0.1.0.6", "website": "https://github.com/OCA/server-auth", "application": True, "author": "initOS GmbH, Odoo Community Association (OCA)", diff --git a/vault/static/description/index.html b/vault/static/description/index.html index 55e7e014a4..7bde088049 100644 --- a/vault/static/description/index.html +++ b/vault/static/description/index.html @@ -372,7 +372,7 @@
This module implements a vault for secrets and files using
diff --git a/vault/views/vault_right_views.xml b/vault/views/vault_right_views.xml
index d4b02b5987..e36e37c036 100644
--- a/vault/views/vault_right_views.xml
+++ b/vault/views/vault_right_views.xml
@@ -8,7 +8,10 @@