← Back to Pull requests

[16.0][IMP] web_widget_sub_view: configurable create-action type and fix overlapping content #3752

Open
juanalfonsocb opened this pull request with 78 lines diff across 6 files
View on GitHub
juanalfonsocb juanalfonsocb commented on Oct 23, 2026 10:43 UTC
Author

Make create-action type configurable + fix vertical-notebook overlap

create-action could be a method name or an action id, but the widget always treated it as an action id (type: "action" hardcoded), breaking the method-name case (KeyError: False). Added create-action-type (object/action, default object) to pick the right one.

Also fixed the widget's content rendering on top of the tabs sidebar when nested in a vertical notebook (forced position: static on .o_content, reset margins meant for horizontal sheets).

Breaking: default changed to object — existing create-action users need create-action-type="action" explicitly.

Diff: 78 lines (+71 / -7) across 6 files Reviewer: etobella Review duration: 41742m
All Vouch review confidence checks passed
Residual risk 0.07 = Change Risk (0.60) × (1 − Review Confidence (0.88)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.60 · 78 lines diff across 6 files
0.60
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.87 · 3 substantive comment(s)
0.87
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
88%
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.261
Sensitive Paths sensitive_paths
0.060
Real PR Conversation Timeline
4 items
oca-cla-bot[bot] oca-cla-bot[bot] commented on Oct 28, 2026 15:52 UTC
Bot

All commit authors signed the Contributor License Agreement.

![CLA signed](https://clabot.odoo-community.org/)<!-- CLA BOT SIGNING COMMENT DO NOT EDIT -->

juanalfonsocb juanalfonsocb commented on Oct 28, 2026 16:17 UTC
Author

@etobella

etobella etobella commented on code on Oct 28, 2026 17:46 UTC
Code Review
web_widget_sub_view/static/src/sub_view_widget/sub_view_widget.esm.js:1
@@ -125,6 +126,7 @@ SubViewWidget.extractProps = ({attrs}) => {
         context: attrs.context || "{}",
         recordAction: attrs["open-action"] || "get_formview_action",
         createAction: attrs["create-action"],
+        createActionType: attrs["create-action-type"] || "object",

this could break existing installations, however,' it has been there for a few days only

Reviewers
Assignees
juanalfonsocb juanalfonsocb
Labels
risk: low confidence: 88.3% reviewed sensitive_module
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: 59.6% (MEDIUM) · Higher = larger blast radius
59.6%
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: 88.3% · Lower = rushed or shallow review
88.3%
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: 7.0% · Safe to merge
7.0%
Repository