[19.0][ADD] web_form_listpanel #3810
All Vouch review confidence checks passed
Residual risk 0.27 = Change Risk (0.50) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.50 · 573 lines diff across 7 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 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.380
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #3810"
general
weight: 0.35
robyf70
This module adds a
<listpanel>element for form views. It shows a compact,read-only list on the left of the form, and clicking a row opens that record
in the form. It is meant for form-oriented work, where the record you are
editing has correlated records and you want to keep them in view while you
work through them one by one.
Modes
The panel header has a Related | Search toggle:
domainevaluated on the current record,e.g. the other orders of the same customer. The domain can also be computed
on the server, following the
tag_ids_domainpattern in core: pointdomainat a computed
Binary(list) orChar(domain string) field.with the same search domain, sort order and page.
The panel is always shown on the left, wherever
<listpanel>sits in thearch; declaring it after the
<sheet>keeps inheriting views that use//field[@name=...]on the form's own fields.Columns are the
<field>children, or the display name if there are none.The panel is drawn by core's
ListRendereron aRelationalModel, so the<listpanel>takes the rowdecoration-of a<list>and its<field>children take what a list column takes:
widget,options,decoration-,optional,column_invisible(evaluated on the form'srecord),
sum/avg,width,string. Clicking a column header sorts thepanel. Fields named only in the panel's expressions, and the currency of a
monetary column, are loaded as in a list. Buttons, grouping and row handles
are not supported. The panel uses the standard
Pager, highlights the current record, and savesa dirty record before moving, like the form pager does. Users can collapse it,
and the choice is remembered per view. It is hidden in dialogs and below the
LG breakpoint.
Auto panel (opt-in)
A setting in Settings › General Settings › List Panel gives every form
opened from a list or kanban, if it declares no
<listpanel>, a button nextto the pager. The button opens the panel in Search mode with the list's
visible columns (at most three), drawn with the list's widgets and row
decorations. It is off by default.
Technical notes
res.config.settingsbooleanpassed to the browser through
session_info). No new routes and nosudoon records. Depends on
webandbase_setup.mail's chatter: aform_compilersentry plus aFormCompiler.compilepatch, so it works with or withoutmail.hand to the form.
ListControllerandKanbanController.openRecordarepatched to pass them on, and the form keeps them across breadcrumb round
trips.
<listpanel>columns are hidden fromFormArchParserwhile it parsesthe form, so their modifiers never apply to the form's own record.
HttpCase(tests/test_js.py), plusPython tests for the setting.
Screenshots
The README links to these images on
OCA/web19.0, so they show there onlyafter the merge. Here they are from the PR branch.
Related mode (a form declaring
<listpanel>):!Related mode
Search mode, opened from the Companies list sorted by name, descending:
!Search mode
The Auto panel setting:
!Auto panel setting
The Countries form, which declares no
<listpanel>, with the panel openedfrom the list button:
!Auto panel