[FIX] purchase_order_line_description: adapt the tour to the new label DOM #3174
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
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.328
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #3174"
general
weight: 0.35
Saran440
What
Adapts the
purchase_order_line_description_manual_edittour to the current DOM ofproduct_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:
and
labelIsReadonlyrequires the parent record to be cancelled, posted or locked. Onan 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:
:contains(), which matches text content and notinput values;
disappear, and it no longer disappears.
So the tour fails at step 1 after a 10s timeout, and
test with Odoo/test with OCBare 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.