From e79f11f5f094a6494c1a3503078b4d55e8282655 Mon Sep 17 00:00:00 2001 From: gsinghpal Date: Sat, 18 Apr 2026 23:48:26 -0400 Subject: [PATCH] fix(shopfloor): suppress Odoo .o_kanban_record chrome inside fp kanbans MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Bake Window + First-Piece Gate cards looked rounded on their own, but Odoo's default .o_kanban_record wrapper painted its own background + border + box-shadow with sharper corners than our inner .o_fp_kcard — visible as a faint square ghost behind every card, especially obvious on the missed_window state where the red wash on the inner card didn't extend to the wrapper edges. Added a .o_fp_bw_kanban / .o_fp_fpg_kanban scoped override that zeroes the wrapper's background, border, box-shadow and padding, letting only our card surface render. Also drops the kanban group container's tinted bg for the same reason. Bumped shopfloor to 19.0.13.0.0. Co-Authored-By: Claude Opus 4.7 (1M context) --- .../fusion_plating_shopfloor/__manifest__.py | 2 +- .../static/src/scss/fp_kanbans.scss | 30 +++++++++++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/fusion_plating/fusion_plating_shopfloor/__manifest__.py b/fusion_plating/fusion_plating_shopfloor/__manifest__.py index bce54c4a..5a431f9b 100644 --- a/fusion_plating/fusion_plating_shopfloor/__manifest__.py +++ b/fusion_plating/fusion_plating_shopfloor/__manifest__.py @@ -5,7 +5,7 @@ { 'name': 'Fusion Plating — Shop Floor', - 'version': '19.0.12.0.0', + 'version': '19.0.13.0.0', 'category': 'Manufacturing/Plating', 'summary': 'Shop-floor tablet stations, QR scanning, bake window enforcer, ' 'first-piece inspection gates.', diff --git a/fusion_plating/fusion_plating_shopfloor/static/src/scss/fp_kanbans.scss b/fusion_plating/fusion_plating_shopfloor/static/src/scss/fp_kanbans.scss index 60dae323..83fd495c 100644 --- a/fusion_plating/fusion_plating_shopfloor/static/src/scss/fp_kanbans.scss +++ b/fusion_plating/fusion_plating_shopfloor/static/src/scss/fp_kanbans.scss @@ -17,6 +17,36 @@ // ============================================================================= +// ----------------------------------------------------------------------------- +// Suppress Odoo's default .o_kanban_record chrome inside our kanbans. +// The default wrapper paints its own background, border, padding, and +// (annoyingly) box-shadow with sharper corners than our inner card — +// which makes a faint square ghost visible behind every card. By making +// the wrapper transparent / borderless, only our .o_fp_kcard surface is +// visible, so corner radii stay consistent across every state. +// ----------------------------------------------------------------------------- +.o_fp_bw_kanban, +.o_fp_fpg_kanban { + .o_kanban_record { + background: transparent !important; + border: 0 !important; + box-shadow: none !important; + padding: 0 !important; + margin: 0 0 $fp-space-2 0; + // Match the inner card radius so any focus / selected outline + // Odoo paints on top still curves with the card. + border-radius: $fp-radius-md; + overflow: visible; // let our shadow paint outside the wrapper + } + + // Same treatment for the kanban group container — Odoo gives it a + // subtle bg that looks misaligned next to the card surfaces. + .o_kanban_group { + background: transparent; + } +} + + // Generic kanban card shared by Bake Windows + First-Piece Gates. // Per-page tweaks live in the .o_fp_bw_kanban and .o_fp_fpg_kanban // blocks below.