← Back to Pull requests

[18.0][FIX] stock_vertical_lift: refresh screen data without reloading the view #2715

Open
divad1196 opened this pull request with 112 lines diff across 5 files
View on GitHub
divad1196 divad1196 commented on Nov 09, 2026 20:40 UTC
Author

Context

Save & Release can be paused, for example by the Check empty popup, and must be resumable.
No screen refresh must happen until it finishes, only after.

Today, the Save & Release button shows a pop-up and refresh the screen which looses the pop-up.

Cause

https://github.com/OCA/stock-logistics-warehouse/pull/2649 replaced root.load with a soft_reload. They are not the same:

  • soft_reload refresh the screen

  • root.load calls _updateConfig which only update the record's values without refreshing the screen.
  • Fix

    Revert the change on root.load

    Diff: 112 lines (+107 / -5) across 5 files Reviewer: simahawk Review duration: 38013m
    All Vouch review confidence checks passed
    Residual risk 0.06 = Change Risk (0.37) × (1 − Review Confidence (0.85)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.37 · 112 lines diff across 5 files
    0.37
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.80 · 3 substantive comment(s)
    0.80
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 50%
    85%
    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
    Diff Size diff_size
    0.283
    Real PR Conversation Timeline
    6 items
    divad1196 divad1196 commented on Nov 10, 2026 09:59 UTC
    Author

    @grindtildeath @gurneyalex @jbaudoux

    simahawk simahawk approved these changes on Nov 10, 2026 10:31 UTC
    Approved Reviewer

    Approved these changes.

    grindtildeath grindtildeath commented on code on Nov 10, 2026 12:57 UTC
    Code Review
    stock_vertical_lift/static/src/js/vertical_lift.esm.js:1
    @@ -85,10 +85,7 @@ patch(FormController.prototype, {
     
         vlift_bus_action_refresh(params) {
             if (params.id === this.props.resId && params.model === this.props.resModel) {
    -            this.env.services.action.doAction({
    -                type: "ir.actions.client",
    -                tag: "soft_reload",
    -            });
    +            this.model.root.load();

    I'm wondering here, shouldn't we have the two options instead of using one over another?

    grindtildeath grindtildeath approved these changes on Nov 10, 2026 13:00 UTC
    Approved Reviewer

    LG anyway

    divad1196 divad1196 commented on code on Nov 10, 2026 15:39 UTC
    Code Review
    stock_vertical_lift/static/src/js/vertical_lift.esm.js:1
    @@ -85,10 +85,7 @@ patch(FormController.prototype, {
     
         vlift_bus_action_refresh(params) {
             if (params.id === this.props.resId && params.model === this.props.resModel) {
    -            this.env.services.action.doAction({
    -                type: "ir.actions.client",
    -                tag: "soft_reload",
    -            });
    +            this.model.root.load();

    AFAIK, soft_reload never comes from the bus in Odoo. It's probably because it does not play well with user interaction (like the issue we have here).
    IMO, the best is to wait to have a use case to discuss it.

    Reviewers
    Assignees
    divad1196 divad1196
    Labels
    risk: low confidence: 85.2% 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: 37.1% (MEDIUM) · Higher = larger blast radius
    37.1%
    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: 85.2% · Lower = rushed or shallow review
    85.2%
    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: 5.5% · Safe to merge
    5.5%