← Back to Pull requests

[FIX] purchase_order_line_description: adapt the tour to the new label DOM #3174

Closed
unknown closed this pull request without merging on Sep 10, 2026 08:36 UTC
View on GitHub
unknown unknown commented on Sep 09, 2026 14:57 UTC
Author

What

Adapts the purchase_order_line_description_manual_edit tour to the current DOM of
product_label_section_and_note_field. Test-only change, no runtime code touched.

Why

Since odoo/odoo#285946 the read-only label
of the field is rendered as cell text only when the label is actually read-only:

-  <div t-if="props.readonly" ... t-out="label"/>
+  <div t-if="this.labelIsReadonly" ... t-out="label"/>

and labelIsReadonly requires the parent record to be cancelled, posted or locked. On
an open purchase order it never is, so the description now lives in the value of a
textarea
for the whole life of the order, instead of as text in the cell.

Two steps of the tour relied on the old DOM and time out against current 19.0:

  • step 1 matched the description with :contains(), which matches text content and not

  • input values;
  • step 4 detected the end of the inline edition by waiting for the textarea to

  • disappear, and it no longer disappears.

    So the tour fails at step 1 after a 10s timeout, and test with Odoo / test with OCB
    are red on every open PR of the 19.0 branch, not only on the ones touching this module.

    Fix

    Match the textarea value for the first step, and watch the selected row to know the
    line left inline edit mode.

    Test plan

    Reproduced and verified locally, running the module's test suite against two different
    core revisions:

    | core 19.0 | tour before | tour after |
    |---|---|---|
    | 5587c47a865 (6 Aug, before the core change) | SUCCEEDED | SUCCEEDED |
    | e809d194b88 (9 Sep, current) | FAILED at step 1/6, Element ... has not been found. TIMEOUT step failed to complete within 10000 ms | SUCCEEDED, 0 failed, 0 error(s) of 3 tests |

    The python assertions around the tour are untouched, so the test still checks that the
    line description really ends up edited and that the product name stays out of it.

    Diff: 241 lines (+180 / -61) across 3 files Reviewer: Saran440 Review duration: 1059m
    All Vouch review confidence checks passed
    Residual risk 0.15 = Change Risk (0.39) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.39 · 241 lines diff across 3 files
    0.39
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    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.328
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #3174"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% 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: 38.8% (MEDIUM) · Higher = larger blast radius
    38.8%
    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: 60.5% · Lower = rushed or shallow review
    60.5%
    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: 15.3% · Safe to merge
    15.3%