← Back to Pull requests

[MIG] dms_attachment_link: Migration to 18.0 #478

Open
IJOL opened this pull request with 131 lines diff across 1 files
View on GitHub
IJOL IJOL commented on Jun 03, 2026 13:44 UTC
Author

Migration of dms_attachment_link to 18.0.

This continues @hhgabelgaard's work in #460, which is a clean, history-preserving migration but has stalled after maintainer review: @flotho requested changes on 2026-02-20 (a runtime error reported on runboat) and the branch has not been updated since (its head was last pushed on 2026-02-04). This PR builds on top of that branch — preserving its full history and authorship — and adds the fix for the reported issue.

On top of #460:

  • Inject the action service into the Chatter patch via setup() / useService("action"). In Odoo 18 the Chatter no longer exposes this.action, so _onAddDmsFile() raised TypeError: this.action is undefined when clicking "Add DMS file" — the runtime error seen in @flotho's review.

  • Add a scoped scss so the file selector kanban does not collapse to ~17px inside the wizard dialog.

  • Regenerate the README (badges/links still pointed to 17.0).
  • Credit for the migration goes to @hhgabelgaard and the original authors. Supersedes #460.

    @flotho @hhgabelgaard

    Diff: 131 lines (+98 / -33) across 1 files Reviewer: None requested Review duration: 263060m
    All Vouch review confidence checks passed
    Residual risk 0.43 = Change Risk (0.74) × (1 − Review Confidence (0.42)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.74 · 131 lines diff across 1 files
    0.74
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 10%
    42%
    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
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.292
    No Reviewer Assigned no_reviewer_assigned
    0.120
    Sensitive Paths sensitive_paths
    0.074
    Real PR Conversation Timeline
    1 comments
    "Review active on #478"
    general weight: 0.35
    Reviewers
    None requested
    Assignees
    IJOL IJOL
    Labels
    risk: medium confidence: 42.2% 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: 74.4% (HIGH) · Higher = larger blast radius
    74.4%
    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: 42.2% · Lower = rushed or shallow review
    42.2%
    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: 43.0% · Moderate risk
    43.0%
    Repository