From 5295aefd8ff70fd6edc09b8cf665c08c57827e44 Mon Sep 17 00:00:00 2001 From: gsinghpal Date: Thu, 21 May 2026 04:30:04 -0400 Subject: [PATCH] fix(fusion_claims): force full-width dashboard sheet with dedicated class The .o_fc_dashboard .o_form_sheet override wasn't winning specificity against Odoo's default form-sheet constraints. Added a dedicated class o_fc_dashboard_sheet directly on the element + !important overrides on max-width, width, and flex to stretch the sheet to the full container width. Co-Authored-By: Claude Opus 4.7 (1M context) --- fusion_claims/__manifest__.py | 2 +- .../static/src/scss/fc_dashboard.scss | 22 ++++++++++++++----- fusion_claims/views/dashboard_views.xml | 2 +- 3 files changed, 18 insertions(+), 8 deletions(-) diff --git a/fusion_claims/__manifest__.py b/fusion_claims/__manifest__.py index 12201f20..5aa43d15 100644 --- a/fusion_claims/__manifest__.py +++ b/fusion_claims/__manifest__.py @@ -5,7 +5,7 @@ { 'name': 'Fusion Claims', - 'version': '19.0.9.1.0', + 'version': '19.0.9.1.1', 'category': 'Sales', 'summary': 'Complete ADP Claims Management with Dashboard, Sales Integration, Billing Automation, and Two-Stage Verification.', 'description': """ diff --git a/fusion_claims/static/src/scss/fc_dashboard.scss b/fusion_claims/static/src/scss/fc_dashboard.scss index 655a2cef..0865a4d6 100644 --- a/fusion_claims/static/src/scss/fc_dashboard.scss +++ b/fusion_claims/static/src/scss/fc_dashboard.scss @@ -4,12 +4,22 @@ // ============================================================================= // Override Odoo's form-sheet max-width so the dashboard uses the full -// browser width. The selector matches the form (which carries the class) -// and targets the inner sheet element. -.o_fc_dashboard .o_form_sheet, -.o_form_view.o_fc_dashboard .o_form_sheet { - max-width: none; - width: 100%; +// browser width. Class is applied directly to (becomes +// .o_form_sheet .o_fc_dashboard_sheet at runtime) — combined with +// !important to beat Odoo's default + parent flex constraints. +.o_fc_dashboard_sheet, +.o_form_sheet.o_fc_dashboard_sheet, +.o_fc_dashboard .o_form_sheet { + max-width: none !important; + width: 100% !important; + flex: 1 1 auto !important; +} +// Some Odoo themes wrap the sheet in a flex container with its own +// max-width; force the wrapper to stretch as well. +.o_form_sheet_bg:has(> .o_fc_dashboard_sheet), +.o_form_view:has(.o_fc_dashboard_sheet) .o_form_sheet_bg { + max-width: none !important; + width: 100% !important; } .o_fc_dashboard { diff --git a/fusion_claims/views/dashboard_views.xml b/fusion_claims/views/dashboard_views.xml index f846d519..d15eb8ab 100644 --- a/fusion_claims/views/dashboard_views.xml +++ b/fusion_claims/views/dashboard_views.xml @@ -6,7 +6,7 @@
- +