fix(shopfloor): suppress Odoo .o_kanban_record chrome inside fp kanbans

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) <noreply@anthropic.com>
This commit is contained in:
gsinghpal
2026-04-18 23:48:26 -04:00
parent b637723c6a
commit e79f11f5f0
2 changed files with 31 additions and 1 deletions

View File

@@ -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.',

View File

@@ -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.