[MIG] password_security: Migration to 19.0#927
Closed
Conversation
Port from 18.0.1.0.0 to 19.0.1.0.0. No breaking API changes between Odoo 18 and 19 for this module: - auth_password_policy, auth_password_policy_signup, auth_totp are all available in Odoo 19.0 - ensure_db import path unchanged (web.controllers.home) - auth_totp Home controller class name unchanged Migration performed following OCA guidelines. Made-with: Cursor
- ruff UP031: replace percent format with f-string in _check_password_rules - ruff-format: collapse set_param calls in test_password_history - pylint W8301/W8161: replace _() with self.env._() for lazy/env-aware translation on all UserError/ValidationError messages in res_users - Remove unused _ import from odoo (replaced by self.env._) - Add README.rst required by OCA pylint C8112 (missing-readme) Made-with: Cursor
- Opener API: Odoo 19 changed Opener(cursor) to Opener(http_case);
update all HttpCase tests (test_login, test_signup, test_reset_password)
- base.user_demo: CI runs without demo data; replace env.ref("base.user_demo")
with dynamically created test users in test_res_users and test_totp
- test_02_history_is_limited: add invalidate_recordset() to flush ORM cache
after _set_encrypted_password creates a new history entry
- test_01_history_is_saved: same cache invalidation fix
- test_03_reset_password_admin: replace reset_password("demo") with
username from setUp and create a non-admin user dynamically
Made-with: Cursor
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Author
|
Closed as the module is migrated. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Migrates the
password_securitymodule from 18.0 to 19.0.Changes