Updating the password hash fails, if "_set_encrypted_password" is called as a regular user.
The core _set_encrypted_password method executes a direct query without any access checks, so we assume it's safe to operate with sudo() here.
The problem was seen after https://github.com/odoo/odoo/pull/146865 where hash strength is increased, resulting in password hash updates without a normal password change.
Updating the password hash fails, if "_set_encrypted_password" is called as a regular user.
The core _set_encrypted_password method executes a direct query without any access checks, so we assume it's safe to operate with sudo() here.
The problem was seen after https://github.com/odoo/odoo/pull/146865 where hash strength is increased, resulting in password hash updates without a normal password change.