[18.0][FIX] stock_vertical_lift_storage_type: prevent unnecessary putaway recomputation #2714
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.40) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 290 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 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.344
Diff Size
diff_size
0.339
Real PR Conversation Timeline
1 comments
"Review active on #2714"
general
weight: 0.35
jbaudoux
Context
The putaway destination is always recomputed.
One reason was that the move to put away caused its current destination to be marked as
being filled, making the location unfit as a target for the putaway.A first fix was made so that current location does not consider the move we are currently computing the putaway destination: https://github.com/OCA/stock-logistics-putaway/pull/19
Issues
This fix works but was not applied to
stock_vertical_liftmodule.We also recompute the putaway destination even when the active one is valid which is unnecessary.
Fixes
exclude_sml_idscontext to the vertical lift's shuttle (same as for the fix)NOTE: the context variable is set by Odoo.
Alternative proposal
We could use _apply_putaway_strategy and pass the shuttle location in its context.
The context would be forwarded to _get_putaway_strategy which limits the locations based on the context.
It would look a bit like that.
I would propose to do it in stock_storage_type