From d1661f3a3345aff6b522421e17fc9d615d3a98db Mon Sep 17 00:00:00 2001 From: gsinghpal Date: Sun, 19 Apr 2026 16:04:01 -0400 Subject: [PATCH] feat(fusion_accounting_reports): anomaly_strip OWL component (Fusion-only) Made-with: Cursor --- fusion_accounting_reports/__manifest__.py | 4 +++- .../components/anomaly_strip/anomaly_strip.js | 18 ++++++++++++++++++ .../components/anomaly_strip/anomaly_strip.xml | 18 ++++++++++++++++++ 3 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 fusion_accounting_reports/static/src/components/anomaly_strip/anomaly_strip.js create mode 100644 fusion_accounting_reports/static/src/components/anomaly_strip/anomaly_strip.xml diff --git a/fusion_accounting_reports/__manifest__.py b/fusion_accounting_reports/__manifest__.py index 25979dad..5a3082fe 100644 --- a/fusion_accounting_reports/__manifest__.py +++ b/fusion_accounting_reports/__manifest__.py @@ -1,6 +1,6 @@ { 'name': 'Fusion Accounting Reports', - 'version': '19.0.1.0.28', + 'version': '19.0.1.0.29', 'category': 'Accounting/Accounting', 'summary': 'AI-augmented financial reports (P&L, balance sheet, trial balance, GL).', 'description': """ @@ -54,6 +54,8 @@ menu hides; the engine and AI tools remain available for the chat. 'fusion_accounting_reports/static/src/components/period_filter/period_filter.xml', 'fusion_accounting_reports/static/src/components/ai_commentary_panel/ai_commentary_panel.js', 'fusion_accounting_reports/static/src/components/ai_commentary_panel/ai_commentary_panel.xml', + 'fusion_accounting_reports/static/src/components/anomaly_strip/anomaly_strip.js', + 'fusion_accounting_reports/static/src/components/anomaly_strip/anomaly_strip.xml', ], }, 'installable': True, diff --git a/fusion_accounting_reports/static/src/components/anomaly_strip/anomaly_strip.js b/fusion_accounting_reports/static/src/components/anomaly_strip/anomaly_strip.js new file mode 100644 index 00000000..bbcd4649 --- /dev/null +++ b/fusion_accounting_reports/static/src/components/anomaly_strip/anomaly_strip.js @@ -0,0 +1,18 @@ +/** @odoo-module **/ + +import { Component } from "@odoo/owl"; + +export class AnomalyStrip extends Component { + static template = "fusion_accounting_reports.AnomalyStrip"; + static props = { + anomaly: { type: Object }, + }; + + formatAmount(amount) { + if (amount === null || amount === undefined) return ""; + return new Intl.NumberFormat(undefined, { + minimumFractionDigits: 2, maximumFractionDigits: 2, + signDisplay: 'always', + }).format(amount); + } +} diff --git a/fusion_accounting_reports/static/src/components/anomaly_strip/anomaly_strip.xml b/fusion_accounting_reports/static/src/components/anomaly_strip/anomaly_strip.xml new file mode 100644 index 00000000..021b394e --- /dev/null +++ b/fusion_accounting_reports/static/src/components/anomaly_strip/anomaly_strip.xml @@ -0,0 +1,18 @@ + + + + +
+ + + + % + () + + + severity: + +
+
+ +