[18.0][IMP-FIX] rma_lot: Misc Improvements #654
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.35) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.35 · 160 lines diff across 2 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.304
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #654"
general
weight: 0.35
cristina-hidalgo-tecnativa
Changes done:
_compute_domain_lot_id()method to allow selecting a lot if an RMA is created manually (while it is in draft status) Related to https://github.com/OCA/rma/pull/637#pullrequestreview-5588712262readonlyto the lot_id fieldinverseto the lot_id field (if the delivery picking has been generated —for example, before the product has been received— and the lot is changed —because anotherone was needed)
requiredto lot_id field to delivery wizard form view. Related to https://github.com/OCA/rma/pull/637#discussion_r4334869115dependsto_compute_domain_lot_id()- [x] Remove unnecessary
readonlyfrom label- [x] Add
lot_id_readonlyfield- [x] Improve
_compute_product_id()method. Related to https://github.com/OCA/rma/pull/637#discussion_r4334382838- [x] Propagate the lot change if the delivery move is set to
picked=True. Related to https://github.com/OCA/rma/pull/654#discussion_r4338098482- [x] Only change the lot (
_inverse_lot_id()) if the product of the moves is the same. Related to https://github.com/OCA/rma/pull/654#pullrequestreview-5600219910- [x] Add tracking=True to lot_id field
Please @carlos-lopez-tecnativa can you review it?
@Tecnativa