changes
This commit is contained in:
125
fusion_accounting/fusion_accounting_reports/views/menu_views.xml
Normal file
125
fusion_accounting/fusion_accounting_reports/views/menu_views.xml
Normal file
@@ -0,0 +1,125 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<!--
|
||||
Fusion dynamic financial reports live as direct children of the
|
||||
Community "Reporting" sub-menu (account.menu_finance_reports),
|
||||
sitting alongside Community's PDF-based "Statement Reports" /
|
||||
"Partner Reports" / "Taxes & Fiscal" / "Management" wrappers.
|
||||
|
||||
Each menu opens an ir.actions.client with tag='fusion_reports'
|
||||
(the OWL ReportViewer). report_actions.xml defines the actions.
|
||||
|
||||
All gated to the coexistence group so they only appear when
|
||||
Enterprise's account_reports is uninstalled.
|
||||
-->
|
||||
|
||||
<!-- Top of the list \u2014 daily-driver statements -->
|
||||
<menuitem id="menu_fusion_reports_pnl"
|
||||
name="Profit and Loss"
|
||||
parent="account.menu_finance_reports"
|
||||
action="action_fusion_report_pnl"
|
||||
sequence="10"
|
||||
groups="fusion_accounting_core.group_fusion_show_when_enterprise_absent"/>
|
||||
<menuitem id="menu_fusion_reports_bs"
|
||||
name="Balance Sheet"
|
||||
parent="account.menu_finance_reports"
|
||||
action="action_fusion_report_balance_sheet"
|
||||
sequence="11"
|
||||
groups="fusion_accounting_core.group_fusion_show_when_enterprise_absent"/>
|
||||
<menuitem id="menu_fusion_reports_executive_summary"
|
||||
name="Executive Summary"
|
||||
parent="account.menu_finance_reports"
|
||||
action="action_fusion_report_executive_summary"
|
||||
sequence="12"
|
||||
groups="fusion_accounting_core.group_fusion_show_when_enterprise_absent"/>
|
||||
<menuitem id="menu_fusion_reports_cash_flow"
|
||||
name="Cash Flow Statement"
|
||||
parent="account.menu_finance_reports"
|
||||
action="action_fusion_report_cash_flow"
|
||||
sequence="13"
|
||||
groups="fusion_accounting_core.group_fusion_show_when_enterprise_absent"/>
|
||||
<menuitem id="menu_fusion_reports_annual_statements"
|
||||
name="Annual Statements"
|
||||
parent="account.menu_finance_reports"
|
||||
action="action_fusion_report_annual_statements"
|
||||
sequence="14"
|
||||
groups="fusion_accounting_core.group_fusion_show_when_enterprise_absent"/>
|
||||
|
||||
<!-- Audit / drill-down statements -->
|
||||
<menuitem id="menu_fusion_reports_tb"
|
||||
name="Trial Balance"
|
||||
parent="account.menu_finance_reports"
|
||||
action="action_fusion_report_trial_balance"
|
||||
sequence="20"
|
||||
groups="fusion_accounting_core.group_fusion_show_when_enterprise_absent"/>
|
||||
<menuitem id="menu_fusion_reports_gl"
|
||||
name="General Ledger"
|
||||
parent="account.menu_finance_reports"
|
||||
action="action_fusion_report_general_ledger"
|
||||
sequence="21"
|
||||
groups="fusion_accounting_core.group_fusion_show_when_enterprise_absent"/>
|
||||
|
||||
<!-- Partner-grouped -->
|
||||
<menuitem id="menu_fusion_reports_aged_receivable"
|
||||
name="Aged Receivable"
|
||||
parent="account.menu_finance_reports"
|
||||
action="action_fusion_report_aged_receivable"
|
||||
sequence="30"
|
||||
groups="fusion_accounting_core.group_fusion_show_when_enterprise_absent"/>
|
||||
<menuitem id="menu_fusion_reports_aged_payable"
|
||||
name="Aged Payable"
|
||||
parent="account.menu_finance_reports"
|
||||
action="action_fusion_report_aged_payable"
|
||||
sequence="31"
|
||||
groups="fusion_accounting_core.group_fusion_show_when_enterprise_absent"/>
|
||||
<menuitem id="menu_fusion_reports_partner_ledger"
|
||||
name="Partner Ledger"
|
||||
parent="account.menu_finance_reports"
|
||||
action="action_fusion_report_partner_ledger"
|
||||
sequence="32"
|
||||
groups="fusion_accounting_core.group_fusion_show_when_enterprise_absent"/>
|
||||
|
||||
<!-- Tax -->
|
||||
<menuitem id="menu_fusion_reports_tax"
|
||||
name="Tax Summary"
|
||||
parent="account.menu_finance_reports"
|
||||
action="action_fusion_report_tax_summary"
|
||||
sequence="40"
|
||||
groups="fusion_accounting_core.group_fusion_show_when_enterprise_absent"/>
|
||||
|
||||
<!--
|
||||
Tools group at the bottom: custom-period picker, XLSX export wizard,
|
||||
anomaly browser. Less-frequently used; bundled together so they
|
||||
don't clutter the report list.
|
||||
-->
|
||||
<menuitem id="menu_fusion_reports_tools_group"
|
||||
name="Tools"
|
||||
parent="account.menu_finance_reports"
|
||||
sequence="90"
|
||||
groups="fusion_accounting_core.group_fusion_show_when_enterprise_absent"/>
|
||||
<menuitem id="menu_fusion_reports_open"
|
||||
name="Custom Period..."
|
||||
parent="menu_fusion_reports_tools_group"
|
||||
action="action_fusion_period_picker_wizard"
|
||||
sequence="10"
|
||||
groups="fusion_accounting_core.group_fusion_show_when_enterprise_absent"/>
|
||||
<menuitem id="menu_fusion_reports_xlsx"
|
||||
name="Export to XLSX..."
|
||||
parent="menu_fusion_reports_tools_group"
|
||||
action="action_fusion_xlsx_export_wizard"
|
||||
sequence="20"
|
||||
groups="fusion_accounting_core.group_fusion_show_when_enterprise_absent"/>
|
||||
|
||||
<record id="action_fusion_report_anomaly_list" model="ir.actions.act_window">
|
||||
<field name="name">Report Anomalies</field>
|
||||
<field name="res_model">fusion.report.anomaly</field>
|
||||
<field name="view_mode">list,form</field>
|
||||
</record>
|
||||
|
||||
<menuitem id="menu_fusion_reports_anomalies"
|
||||
name="Anomalies"
|
||||
parent="menu_fusion_reports_tools_group"
|
||||
action="action_fusion_report_anomaly_list"
|
||||
sequence="30"
|
||||
groups="fusion_accounting_core.group_fusion_show_when_enterprise_absent"/>
|
||||
</odoo>
|
||||
@@ -0,0 +1,97 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<!--
|
||||
One ir.actions.client per built-in report. tag="fusion_reports"
|
||||
dispatches to the OWL ReportViewer (registered in
|
||||
static/src/views/report_viewer/report_viewer_view.js).
|
||||
|
||||
The viewer reads ``default_report_type``, ``default_report_code``,
|
||||
and ``default_comparison`` from the action context to pick which
|
||||
fusion.report to render with which line_specs.
|
||||
|
||||
Why ir.actions.client and not ir.actions.act_window:
|
||||
a custom OWL view type (view_mode='fusion_reports') would require
|
||||
a placeholder ir.ui.view record per action plus a registered "view"
|
||||
in the views registry; the standard act_window resolver also rejects
|
||||
view_modes that have no corresponding ir.ui.view record. Client
|
||||
actions are the V19-canonical pattern for record-less dashboards.
|
||||
-->
|
||||
|
||||
<!-- ============================================================
|
||||
CORE REPORTS (one per Fusion engine method)
|
||||
============================================================ -->
|
||||
|
||||
<record id="action_fusion_report_pnl" model="ir.actions.client">
|
||||
<field name="name">Profit and Loss</field>
|
||||
<field name="tag">fusion_reports</field>
|
||||
<field name="context">{'default_report_type': 'pnl', 'default_report_code': 'pnl'}</field>
|
||||
</record>
|
||||
|
||||
<record id="action_fusion_report_balance_sheet" model="ir.actions.client">
|
||||
<field name="name">Balance Sheet</field>
|
||||
<field name="tag">fusion_reports</field>
|
||||
<field name="context">{'default_report_type': 'balance_sheet', 'default_report_code': 'balance_sheet'}</field>
|
||||
</record>
|
||||
|
||||
<record id="action_fusion_report_trial_balance" model="ir.actions.client">
|
||||
<field name="name">Trial Balance</field>
|
||||
<field name="tag">fusion_reports</field>
|
||||
<field name="context">{'default_report_type': 'trial_balance', 'default_report_code': 'trial_balance'}</field>
|
||||
</record>
|
||||
|
||||
<record id="action_fusion_report_general_ledger" model="ir.actions.client">
|
||||
<field name="name">General Ledger</field>
|
||||
<field name="tag">fusion_reports</field>
|
||||
<field name="context">{'default_report_type': 'general_ledger', 'default_report_code': 'general_ledger'}</field>
|
||||
</record>
|
||||
|
||||
<!-- ============================================================
|
||||
SECONDARY PnL VARIANTS (engine.compute_pnl with code)
|
||||
============================================================ -->
|
||||
|
||||
<record id="action_fusion_report_cash_flow" model="ir.actions.client">
|
||||
<field name="name">Cash Flow Statement</field>
|
||||
<field name="tag">fusion_reports</field>
|
||||
<field name="context">{'default_report_type': 'pnl', 'default_report_code': 'cash_flow', 'default_comparison': 'previous_year'}</field>
|
||||
</record>
|
||||
|
||||
<record id="action_fusion_report_executive_summary" model="ir.actions.client">
|
||||
<field name="name">Executive Summary</field>
|
||||
<field name="tag">fusion_reports</field>
|
||||
<field name="context">{'default_report_type': 'pnl', 'default_report_code': 'executive_summary', 'default_comparison': 'previous_year'}</field>
|
||||
</record>
|
||||
|
||||
<record id="action_fusion_report_annual_statements" model="ir.actions.client">
|
||||
<field name="name">Annual Statements</field>
|
||||
<field name="tag">fusion_reports</field>
|
||||
<field name="context">{'default_report_type': 'pnl', 'default_report_code': 'annual_statements', 'default_comparison': 'previous_year'}</field>
|
||||
</record>
|
||||
|
||||
<record id="action_fusion_report_tax_summary" model="ir.actions.client">
|
||||
<field name="name">Tax Summary</field>
|
||||
<field name="tag">fusion_reports</field>
|
||||
<field name="context">{'default_report_type': 'trial_balance', 'default_report_code': 'tax_summary'}</field>
|
||||
</record>
|
||||
|
||||
<!-- ============================================================
|
||||
PARTNER-GROUPED REPORTS
|
||||
============================================================ -->
|
||||
|
||||
<record id="action_fusion_report_aged_receivable" model="ir.actions.client">
|
||||
<field name="name">Aged Receivable</field>
|
||||
<field name="tag">fusion_reports</field>
|
||||
<field name="context">{'default_report_type': 'aged_receivable', 'default_report_code': 'aged_receivable'}</field>
|
||||
</record>
|
||||
|
||||
<record id="action_fusion_report_aged_payable" model="ir.actions.client">
|
||||
<field name="name">Aged Payable</field>
|
||||
<field name="tag">fusion_reports</field>
|
||||
<field name="context">{'default_report_type': 'aged_payable', 'default_report_code': 'aged_payable'}</field>
|
||||
</record>
|
||||
|
||||
<record id="action_fusion_report_partner_ledger" model="ir.actions.client">
|
||||
<field name="name">Partner Ledger</field>
|
||||
<field name="tag">fusion_reports</field>
|
||||
<field name="context">{'default_report_type': 'partner_ledger', 'default_report_code': 'partner_ledger'}</field>
|
||||
</record>
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user