← Back to Pull requests

[20.0][MIG] sale_stock_picking_invoice_link: Migration to 20.0 #2542

Closed
unknown closed this pull request without merging on Nov 30, 2026 14:34 UTC
View on GitHub
unknown unknown commented on Oct 29, 2026 14:50 UTC
Author

Migration of sale_stock_picking_invoice_link to 20.0.

What the jump needed

  • uom.uom.rounding is gone (9a4ad7cc18d3, [REF] *: remove 'uom.uom.rounding' field). The check on the quantity left to invoice now calls uom.is_zero(), which rounds with the same Product Unit decimal precision the removed field exposed.

  • The return wizard stock.return.picking is gone (36b4a0f5fb2b, [REM] stock: remove return wizard). Two tests used it to build the return; they now call stock.picking._create_return(). The return move inherits to_refund from the original move and its demand starts at 0, so the test sets product_uom_qty.

  • ruff: the 20.0 branch pins 0.16.8 and 19.0 pins 0.13.0, so PERF102 now fails on setUpClass, in code this migration does not otherwise touch. company_data is a plain dict and the key was unused.
  • The fix of #2535

    Split out to #2594, to be merged once #2535 is merged in 19.0.

    Depends on

    #2493 (stock_picking_invoice_link), already merged in 20.0.

    Tests

    Left to the OCA CI after splitting the fix out.

    Diff: 148 lines (+111 / -37) across 1 files Reviewer: adasatorres-tecnativa Review duration: 46063m
    All Vouch review confidence checks passed
    Residual risk 0.22 = Change Risk (0.56) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.56 · 148 lines diff across 1 files
    0.56
    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%
    60%
    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.299
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.056
    Real PR Conversation Timeline
    1 comments
    "Review active on #2542"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% 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: 56.1% (MEDIUM) · Higher = larger blast radius
    56.1%
    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: 60.5% · Lower = rushed or shallow review
    60.5%
    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: 22.2% · Safe to merge
    22.2%