Phases 1-3's SCSS files used '@import "variables";' to pull in tokens
from _variables.scss. V19's odoo.addons.base.models.assetsbundle
forbids cross-file SCSS imports for security ('Local import forbidden')
and the asset bundle warning was firing on every web request.
Phase 4 caught + fixed this for fusion_accounting_followup; Phases 1-3
were never updated. Today's deployment surfaced the CSS error reported
by the user.
Resolution:
- Removed @import lines from 7 SCSS files across bank_rec, reports, assets
- Variables come from _variables.scss via manifest concatenation order
(bundle order is _variables.scss first, then dependent files)
- Replaced documentation comments to NOT contain the literal string
'@import "variables"' \u2014 Odoo's check is regex-based and was
matching even SCSS comments
Verified clean: bundle rebuilds with zero 'Local import forbidden'
warnings; all 534 fusion-module tests still pass.
Made-with: Cursor
35 lines
988 B
SCSS
35 lines
988 B
SCSS
// Variables come from _variables.scss via manifest concatenation order.
|
|
|
|
[data-color-scheme="dark"] .o_fusion_reports {
|
|
background: #1f2937;
|
|
color: #f9fafb;
|
|
|
|
&_header, &_table, &_filters, .o_fusion_commentary_panel {
|
|
background: #111827;
|
|
border-color: #374151;
|
|
color: #f9fafb;
|
|
}
|
|
|
|
&_table {
|
|
th { background: #1f2937; color: #d1d5db; }
|
|
td { border-color: #374151; }
|
|
tr.subtotal { background: #1f2937; }
|
|
tr.drillable:hover { background: #1e3a8a; }
|
|
}
|
|
|
|
.btn_report {
|
|
background: #374151;
|
|
border-color: #4b5563;
|
|
color: #f9fafb;
|
|
|
|
&:hover { background: #4b5563; }
|
|
&.primary { background: #3b82f6; }
|
|
}
|
|
|
|
.o_fusion_anomaly_strip {
|
|
&[data-severity="high"] { background: rgba(239, 68, 68, 0.15); }
|
|
&[data-severity="medium"] { background: rgba(245, 158, 11, 0.15); }
|
|
&[data-severity="low"] { background: rgba(16, 185, 129, 0.15); }
|
|
}
|
|
}
|