User reported that after Enterprise uninstall, clicking 'Reports' opened PDF statements instead of the dynamic Fusion report viewer. Root cause: the OWL ReportViewer (registered as view_type='fusion_reports') was only reachable via the period-picker WIZARD; no menu items used the OWL view directly. Plus the JS service ignored report_code, so even within the viewer, all PnL-typed reports rendered the canonical P&L line_specs. Changes: JS layer - reports_service.js: runReport now accepts and forwards reportCode; state tracks currentReportCode so re-runs after period/comparison changes preserve the variant. - report_viewer.js: reads default_report_code (and default_comparison) from the action context. - period_filter.js: passes the cached reportCode on date changes; clears it when the user picks a different report_type. Backend - New fusion_accounting_reports/views/report_actions.xml with 11 dedicated ir.actions.act_window records, one per built-in report (P&L, Balance Sheet, Trial Balance, GL, Cash Flow, Executive Summary, Annual Statements, Aged Receivable, Aged Payable, Partner Ledger, Tax Summary). Each opens view_mode='fusion_reports' with the appropriate default_report_type + default_report_code context. - views/menu_views.xml: each report now gets its own menu item directly under Accounting > Reporting (sequence 10-40), matching Enterprise's flat structure. Custom Period wizard, XLSX export and Anomaly browser collected under a 'Tools' sub-group at the bottom. - fusion_accounting_l10n_ca: adds menu items for 'Profit and Loss (Canada)' and 'Balance Sheet (Canada)' as siblings, plus a 'Tax Returns (CA)' configuration menu. Verified live on westin-v19: - pnl rendering 3 rows, cash_flow 9, executive_summary 7, annual_statements 5, ca_profit_loss 9 \u2014 each report now renders its own line_specs correctly. - Reporting menu shows 14 Fusion report entries + Tools group. - 136/136 reports + l10n_ca tests pass. Version bumps: reports 19.0.1.1.1, l10n_ca 19.0.1.1.0. Made-with: Cursor
33 lines
1.2 KiB
Python
33 lines
1.2 KiB
Python
{
|
|
'name': 'Fusion Accounting — Canadian Reports',
|
|
'version': '19.0.1.1.0',
|
|
'category': 'Accounting/Localizations/Reporting',
|
|
'summary': 'Canadian-specific report definitions and tax return templates for Fusion Accounting.',
|
|
'description': """
|
|
Replaces Enterprise's l10n_ca_reports module with Fusion-native equivalents:
|
|
- Canadian Balance Sheet (report definition for fusion_accounting_reports engine)
|
|
- Canadian Profit & Loss (report definition)
|
|
- Tax return tracking templates (GST/HST/PST periods)
|
|
|
|
Auto-installs when l10n_ca + fusion_accounting_reports are both present.
|
|
""",
|
|
'depends': [
|
|
'fusion_accounting_core',
|
|
'fusion_accounting_reports',
|
|
'l10n_ca',
|
|
],
|
|
'data': [
|
|
'security/ir.model.access.csv',
|
|
'data/fusion_tax_return_data.xml',
|
|
'data/report_ca_balance_sheet.xml',
|
|
'data/report_ca_profit_loss.xml',
|
|
'views/menu_views.xml',
|
|
],
|
|
'auto_install': ['l10n_ca', 'fusion_accounting_reports'],
|
|
'installable': True,
|
|
'application': False,
|
|
'license': 'LGPL-3',
|
|
'author': 'Westin / Fusion Suite',
|
|
'icon': '/fusion_accounting_l10n_ca/static/description/icon.png',
|
|
}
|