[20.0][MIG] mail_notification_custom_subject: Migration to 20.0 #338
All Vouch review confidence checks passed
Residual risk 0.33 = Change Risk (0.59) × (1 − Review Confidence (0.44)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.59 · 184 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.312
Sensitive Paths
sensitive_paths
0.059
Real PR Conversation Timeline
1 comments
"Review active on #338"
general
weight: 0.35
adasatorres-tecnativa
Migration of
mail_notification_custom_subjectto 20.0.Changes:
20.0.1.0.0; the 19.0 version isn't installable on 20.0.ir.model.access.csvreplaced byir.access.csv, generated with19.4-00-ir-access.py. Rights are unchanged:rforbase.group_user,crudforbase.group_system._test_user_groups = Noneon the test class, as the migration guide describes:BaseCommonnow rebinds recordsets to a plain internal user, which undoes the test'swith_user(admin).# noqa: BLE001on the existingexcept Exception, flagged by the ruff version pinned on 20.0 (see OCA/oca-addons-repo-template#372). Behaviour is unchanged.How to test on Runboat:
1. In debug mode, make sure the admin user has an email address.
2. Under Settings > Technical > Email > Subject Replacement Templates, create a template for Contact, subtype "Messages", position Replace, with a subject such as
Manual check for {{object.name}}.3. Post a message on a contact with a follower.
4. The rendered subject shows in the chatter and on the email in MailHog.
I did this on this PR's Runboat build. Locally, on Odoo 20.0
c8a62e5f0with PostgreSQL 16 and 17, all 8 tests pass,checklog-odooand pre-commit are clean, and the subject shows on the outgoingmail.mail.<img width="1470" height="284" alt="Screenshot 2026-11-07 at 11 22 33 PM" src="https://github.com/user-attachments/assets/11599e18-ca4d-4263-ab7d-dbddd4f94445" />