← Back to Pull requests

[20.0][MIG] mail_improved_tracking_value: Migration to 20.0 #1954

Closed
unknown closed this pull request without merging on Nov 30, 2026 06:33 UTC
View on GitHub
unknown unknown commented on Nov 02, 2026 05:27 UTC
Author

Closes #1953. Rationale in the issue: Odoo tracks x2many fields since 17.0 but stores only
the display names; this keeps the ids as JSON in old_value_text / new_value_text, as up to 16.0.

Changes

  • History from 16.0 kept (git format-patch | git am -3 --keep), then [IMP] pre-commit auto

  • fixes
    , then this [MIG] commit.
  • Kept: JSON id lists for tracked many2many / one2many fields, same storage as 16.0.

  • Removed:

  • - old/new_value_formatted, record_name, model fields and the "tracked changes" view and
    menu. Odoo's mail_tracking (Discuss Tracking) provides the technical views.
    - The mail.message.name_get override. name_get no longer exists.
    - The mail.tracking.value.create_tracking_values override. The extension point is now
    mail.track.mixin._create_mail_tracking_values.
  • depends: mail_tracking (Odoo's Discuss Tracking, which defines mail.tracking.value).

  • README converted to readme/*.md fragments.

  • Not applicable from the 17.0–20.0 guides: no views, ACLs, migration scripts, assets or hooks.

  • i18n left for the bot.
  • Tests

  • Direct calls on res.partner for many2many, one2many, empty and False values, char and

  • many2one. The result must equal Odoo's own output plus only the two id keys, so names are
    proven untouched.
  • Real writes on tracked many2many and one2many fields of a test model, read back with

  • search_read on mail.tracking.value.
  • Pre-commit green locally, 8 tests green locally.
  • Diff: 186 lines (+139 / -47) across 2 files Reviewer: hbrunn Review duration: 40385m
    All Vouch review confidence checks passed
    Residual risk 0.25 = Change Risk (0.59) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.59 · 186 lines diff across 2 files
    0.59
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    56%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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
    Diff Size diff_size
    0.313
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.059
    Real PR Conversation Timeline
    1 comments
    "Review active on #1954"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 56.8% reviewed sensitive_module
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 58.9% (MEDIUM) · Higher = larger blast radius
    58.9%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 56.8% · Lower = rushed or shallow review
    56.8%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 25.5% · Safe to merge
    25.5%
    Repository