[17.0][FIX] sale_operating_unit: fix sales team OU constraint for shared teams #896
All Vouch review confidence checks passed
Residual risk 0.12 = Change Risk (0.28) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.28 · 61 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
Shallow Review Depth
shallow_review_depth
0.289
Diff Size
diff_size
0.247
Real PR Conversation Timeline
1 comments
"Review active on #896"
general
weight: 0.35
AaronHForgeFlow
Backport of #893 (18.0).
Clearing the operating unit of a sales team, to make it shared, raised the "Configuration error. It is not possible to change this team" error as soon as sale orders were linked to it. The constraint now skips teams without operating unit and ignores sale orders without operating unit. It also uses
search_countwith a limit instead of fetching the orders.A test clears the operating unit of a team that has sale orders.
This was not run in a live Odoo instance.