From 96ac0131b05a888ab42faa74f6fe3bd4b16b34fe Mon Sep 17 00:00:00 2001 From: gsinghpal Date: Sun, 19 Apr 2026 15:21:32 -0400 Subject: [PATCH] feat(fusion_accounting_reports): seed P&L report definition Adds data/report_pnl.xml seeding a company-agnostic fusion.report record for the Income Statement (report_type='pnl'). Line specs are loaded via eval= so Odoo passes a real Python list to the JSON field instead of a string-encoded blob. Structure: Revenue (sign -1) - Operating Expenses (sign -1) = Net Income (subtotal above 2). Comparison defaults to previous_year. Bumps manifest to 19.0.1.0.5. Made-with: Cursor --- fusion_accounting_reports/__manifest__.py | 3 ++- fusion_accounting_reports/data/report_pnl.xml | 17 +++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 fusion_accounting_reports/data/report_pnl.xml diff --git a/fusion_accounting_reports/__manifest__.py b/fusion_accounting_reports/__manifest__.py index da493654..3b26073c 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.4', + 'version': '19.0.1.0.5', 'category': 'Accounting/Accounting', 'summary': 'AI-augmented financial reports (P&L, balance sheet, trial balance, GL).', 'description': """ @@ -31,6 +31,7 @@ menu hides; the engine and AI tools remain available for the chat. ], 'data': [ 'security/ir.model.access.csv', + 'data/report_pnl.xml', ], 'assets': { 'web.assets_backend': [ diff --git a/fusion_accounting_reports/data/report_pnl.xml b/fusion_accounting_reports/data/report_pnl.xml new file mode 100644 index 00000000..63685859 --- /dev/null +++ b/fusion_accounting_reports/data/report_pnl.xml @@ -0,0 +1,17 @@ + + + + Profit and Loss + pnl + pnl + 10 + previous_year + Income Statement summarizing revenue, expenses, and net income for a period. + + + +