Skip to content

Conversation

@tishmen
Copy link

@tishmen tishmen commented Oct 9, 2025

Scope

  • impersonate_login

Depends on

  • None

Summary

  • Migrate to Odoo 19; tests included. No functional changes beyond compatibility.
  • Key updates: replace deprecated self._uid usages; adjust translations and formatting; JS asset integration for backend menu item.

Temporary references

  • None

Pre-commit

  • Ran locally; auto-fixes committed.

Tests

  • Added resilience for Odoo 19 runner (no demo data by default): create demo user, assign required groups (base.group_user, base.group_partner_manager).
  • CI should run the module tests. Locally verified using --test-tags "/impersonate_login" on a fresh DB.

amkarthik and others added 30 commits March 10, 2025 15:15
Avoided requiring the module twice in JS.
Currently translated at 57.9% (22 of 38 strings)

Translation: server-auth-12.0/server-auth-12.0-password_security
Translate-URL: https://translation.odoo-community.org/projects/server-auth-12-0/server-auth-12-0-password_security/hr/
Currently translated at 86.8% (33 of 38 strings)

Translation: server-auth-12.0/server-auth-12.0-password_security
Translate-URL: https://translation.odoo-community.org/projects/server-auth-12-0/server-auth-12-0-password_security/pt/
Currently translated at 100.0% (38 of 38 strings)

Translation: server-auth-12.0/server-auth-12.0-password_security
Translate-URL: https://translation.odoo-community.org/projects/server-auth-12-0/server-auth-12-0-password_security/pt/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-auth-12.0/server-auth-12.0-password_security
Translate-URL: https://translation.odoo-community.org/projects/server-auth-12-0/server-auth-12-0-password_security/
Set requirements in the root of projects
Currently translated at 100.0% (56 of 56 strings)

Translation: server-auth-14.0/server-auth-14.0-password_security
Translate-URL: https://translation.odoo-community.org/projects/server-auth-14-0/server-auth-14-0-password_security/fi/
Currently translated at 26.7% (15 of 56 strings)

Translation: server-auth-14.0/server-auth-14.0-password_security
Translate-URL: https://translation.odoo-community.org/projects/server-auth-14-0/server-auth-14-0-password_security/sv/
Currently translated at 39.2% (22 of 56 strings)

Translation: server-auth-14.0/server-auth-14.0-password_security
Translate-URL: https://translation.odoo-community.org/projects/server-auth-14-0/server-auth-14-0-password_security/sv/
eduezerouali-tecnativa and others added 12 commits September 9, 2025 08:55
Signed-off-by pedrobaeza
When using mapping, not writing the value systematically avoids getting
security mail on login/email changes when there is no change.
Also use SQL for blanking passwords avoids the security update mails.
Signed-off-by vincent-hatakeyama
Signed-off-by StefanRijnhart
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-auth-18.0/server-auth-18.0-auth_saml
Translate-URL: https://translation.odoo-community.org/projects/server-auth-18-0/server-auth-18-0-auth_saml/
Currently translated at 100.0% (93 of 93 strings)

Translation: server-auth-18.0/server-auth-18.0-auth_saml
Translate-URL: https://translation.odoo-community.org/projects/server-auth-18-0/server-auth-18-0-auth_saml/it/
@tishmen tishmen mentioned this pull request Oct 9, 2025
19 tasks
Copy link
Contributor

@legalsylvain legalsylvain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi. Could you respect commit history ?
Thanks !

Milan Topuzov added 6 commits October 10, 2025 16:12
- Wrap long lines to satisfy ruff E501
- Use self.env._ for translations; avoid .format in _()
- Use lazy named placeholders in translations
- Minor JS/style auto-fixes from pre-commit

Non-functional changes only

(cherry picked from commit 37c900d)
- Use group_ids instead of groups_id
- Create demo user if base.user_demo is missing (no demo data)

Test-only change

(cherry picked from commit 14f4762)
- Add base.group_partner_manager to demo user in setUpClass

Test-only change

(cherry picked from commit d48ff82)
- Update session markers, logging, and log writes
- Silence 19.0 deprecation warnings

Non-functional change

(cherry picked from commit 10f6882)
@tishmen tishmen force-pushed the 19.0-migrate-impersonate_login branch from 10f6882 to 5a3dadd Compare October 10, 2025 14:14
@tishmen
Copy link
Author

tishmen commented Oct 10, 2025

@legalsylvain Hi, thanks for the note - updated to preserve history. Please review and let me know if there is anything else.

):
if request and request.session.impersonate_from_uid:
def _message_compute_author(self, author_id=None, email_from=None):
# Odoo 19 signature drops `raise_on_email`; adapt accordingly.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Such comment should be more a commit message. On need to introduce in the code.

@tishmen
Copy link
Author

tishmen commented Oct 10, 2025

Closing in favor of #849 (history-preserving 18.0 → 19.0 migration).

@tishmen tishmen closed this Oct 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.