← Back to Pull requests

[19.0][IMP] web_tree_many2one_clickable: support document lines #3739

Closed
unknown closed this pull request without merging on Oct 29, 2026 07:29 UTC
View on GitHub
unknown unknown commented on Oct 19, 2026 14:54 UTC
Author

The clickable button does not show in the lines of invoices, sales and purchases, which the ROADMAP said needed a glue module.

Those lists use account.SectionAndNoteListRenderer.RecordRow (and sale.ListRenderer.RecordRow on top of it), a primary template inheriting web.ListRenderer.RecordRow. In 19.0 a primary template only inherits the extensions of its parent that were loaded before it, and this module's extension loads after account's templates.

This PR loads the template extension right after web/static/src/views/list/list_renderer.xml, the same approach as #3148 on 16.0. Every list renderer with its own primary record row template now gets the button, with no dependency on account and no glue module. The ROADMAP note about the glue module is removed. Fields displayed with a widget (like the product field) still don't get the button, as before.

This is in production use at one of our clients on 19.0.

How to test

On runboat (or any 19.0 database with account):
1. With debug mode on, add an inherited view of account.view_move_form that shows the line partner column, which is already in the list but hidden:

     <xpath expr="//field[@name='invoice_line_ids']/list/field[@name='partner_id']" position="attributes">
       <attribute name="column_invisible">False</attribute>
     </xpath>
     

2. Open an invoice and hover the Partner column of the lines: the button shows and opens the partner. Without this change, no button shows.
3. Keep the Product column of the lines hidden: on runboat it currently crashes because of web_widget_product_label_section_and_note_full_label (#3707), unrelated to this PR. If you can't open the invoice form view at all, reset your localStorage.

With sale installed, the same works on order lines, e.g. by adding <field name="order_partner_id" optional="show"/> after product_uom_qty in sale.view_order_form. Purchase lines behave the same way.

Tested on a clean 19.0 database with sale, in a headless browser:

| List | Before | After |
|---|---|---|
| Invoice lines, partner_id | no button | 1 button, opens the partner |
| Sale order lines, order_partner_id | no button | 1 button, opens the partner |
| Contacts list, country_id | button | button (unchanged) |

There is an open 20.0 migration of this module (#3693); this change can be carried forward there once merged.

Diff: 301 lines (+225 / -76) across 3 files Reviewer: CarlosRoca13 Review duration: 13954m
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 301 lines diff across 3 files
0.40
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.342
Shallow Review Depth shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #3739"
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: 40.1% (MEDIUM) · Higher = larger blast radius
40.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: 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.8% · Safe to merge
15.8%
Repository