[20.0][MIG] sale_stock_picking_invoice_link: Migration to 20.0 #2542
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
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 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
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
adasatorres-tecnativa
Migration of
sale_stock_picking_invoice_linkto 20.0.What the jump needed
uom.uom.roundingis gone (9a4ad7cc18d3,[REF] *: remove 'uom.uom.rounding' field). The check on the quantity left to invoice now callsuom.is_zero(), which rounds with the sameProduct Unitdecimal precision the removed field exposed.stock.return.pickingis gone (36b4a0f5fb2b,[REM] stock: remove return wizard). Two tests used it to build the return; they now callstock.picking._create_return(). The return move inheritsto_refundfrom the original move and its demand starts at 0, so the test setsproduct_uom_qty.PERF102now fails onsetUpClass, in code this migration does not otherwise touch.company_datais 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.