Browse Source

Access to Bank reconciliation report from accounting dashboard

Code written during the Tryton conference at JDLL 2018 :)
pull/322/head
Alexis de Lattre 7 years ago
parent
commit
acdd859454
  1. 1
      account_bank_reconciliation_summary_xlsx/__manifest__.py
  2. 31
      account_bank_reconciliation_summary_xlsx/views/account_journal.xml

1
account_bank_reconciliation_summary_xlsx/__manifest__.py

@ -15,6 +15,7 @@
'wizard/bank_reconciliation_report_wizard_view.xml', 'wizard/bank_reconciliation_report_wizard_view.xml',
'views/account_bank_statement.xml', 'views/account_bank_statement.xml',
'views/account_move_line.xml', 'views/account_move_line.xml',
'views/account_journal.xml',
], ],
'installable': True, 'installable': True,
} }

31
account_bank_reconciliation_summary_xlsx/views/account_journal.xml

@ -0,0 +1,31 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2018 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->
<odoo>
<!-- Accounting Dashboard -->
<record id="account_journal_dashboard_kanban_view" model="ir.ui.view">
<field name="name">bank_reconciliation_summarry.account_journal_dashboard</field>
<field name="model">account.journal</field>
<field name="inherit_id" ref="account.account_journal_dashboard_kanban_view"/>
<field name="arch" type="xml">
<xpath expr="//div[@name='bank_cash_commands']/.." position="after">
<div class="col-xs-4 o_kanban_card_manage_section o_kanban_manage_new">
<div class="o_kanban_card_manage_title">
<span>Report</span>
</div>
<div name="bank_reconciliation_report">
<a name="%(bank_reconciliation_report_wizard_action)d"
type="action"
context="{'default_journal_ids': [active_id]}">Bank Reconciliation</a>
</div>
</div>
</xpath>
</field>
</record>
</odoo>
Loading…
Cancel
Save