← Back to Pull requests

[19.0][IMP] sale_order_blanket_order: deliver call-offs at their own address and date #62

Open
unknown opened this pull request with 262 lines diff across 3 files
View on GitHub
unknown unknown commented on Nov 19, 2026 10:34 UTC
Author

Call-off orders are now delivered to their own delivery address, on the date they request.
Call-offs to the same address on the same day share their picking; the others get their own.
Both reservation strategies now deliver through the manual delivery wizard.

The first commit is the 19.0 port of a862e66 from #52.

[!IMPORTANT]

Depends on OCA/sale-workflow#4808. Without it the moves keep the blanket order's address, so two call-offs to the same address get two pickings. test-requirements.txt points to it until it is merged.

| Case | Before | After |
| --- | --- | --- |
| "At Call-off", call-off to another address | Picking addressed to the blanket order's customer, shared by every call-off | Own picking at the call-off's delivery address |
| Call-offs on different dates | Same picking | One picking per date |
| "At Order Confirmation" | Joins the open picking of the blanket order, at its address and date | Same as "At Call-off" |
| Deadline of the moves | Validity start of the blanket order | Commitment date of the call-off, otherwise its order date |

Commits

| Commit | Content |
| --- | --- |
| Group call-off deliveries sharing the same date | Cherry-pick of a862e66 (#52, 16.0). On 19.0 _create_call_off_order already exists in the tests, and the test checks reference_ids instead of group_id. |
| Deliver call-offs at their own address | _deliver_call_off_qty_with_manual_delivery gives the wizard the call-off's delivery address and date. _prepare_procurement_values sets the deadline from the call-off. |
| Prebook: deliver call-offs through the wizard | With "At Order Confirmation", _launch_stock_rule_for_call_off_line_qty calls the same helper once the reservation is updated, instead of _action_launch_stock_rule. The order matters: the reservation moves count as procured, so only the call-off quantity is left for the wizard. |

The automatic conversion of normal orders into call-offs still only finds blanket orders with the same delivery address (_get_single_blanket_order_candidates_domain). Not changed here.

Diff: 262 lines (+196 / -66) across 3 files Reviewer: jbaudoux Review duration: 22444m
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.39) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 262 lines diff across 3 files
0.39
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: 35%
46%
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.333
Real PR Conversation Timeline
1 comments
"Review active on #62"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 46.7% reviewed
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: 39.3% (MEDIUM) · Higher = larger blast radius
39.3%
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: 46.7% · Lower = rushed or shallow review
46.7%
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: 20.9% · Safe to merge
20.9%