Alexis de Lattre
5 years ago
11 changed files with 304 additions and 259 deletions
-
30account_bank_reconciliation_summary_xlsx/__manifest__.py
-
6account_bank_reconciliation_summary_xlsx/models/account_move_line.py
-
298account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py
-
23account_bank_reconciliation_summary_xlsx/report/report.xml
-
33account_bank_reconciliation_summary_xlsx/views/account_bank_statement.xml
-
48account_bank_reconciliation_summary_xlsx/views/account_journal.xml
-
25account_bank_reconciliation_summary_xlsx/views/account_move_line.xml
-
29account_bank_reconciliation_summary_xlsx/wizard/bank_reconciliation_report_wizard.py
-
64account_bank_reconciliation_summary_xlsx/wizard/bank_reconciliation_report_wizard_view.xml
-
1setup/account_bank_reconciliation_summary_xlsx/odoo/addons/account_bank_reconciliation_summary_xlsx
-
6setup/account_bank_reconciliation_summary_xlsx/setup.py
@ -1,21 +1,18 @@ |
|||||
<?xml version="1.0" encoding="utf-8"?> |
|
||||
|
<?xml version="1.0" encoding="utf-8" ?> |
||||
<!-- |
<!-- |
||||
Copyright 2017-2020 Akretion France (http://www.akretion.com/) |
Copyright 2017-2020 Akretion France (http://www.akretion.com/) |
||||
@author: Alexis de Lattre <alexis.delattre@akretion.com> |
@author: Alexis de Lattre <alexis.delattre@akretion.com> |
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). |
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). |
||||
--> |
--> |
||||
|
|
||||
<odoo> |
<odoo> |
||||
|
|
||||
<report |
|
||||
id="bank_reconciliation_xlsx" |
|
||||
model="bank.reconciliation.report.wizard" |
|
||||
string="Bank Reconciliation XLSX" |
|
||||
report_type="xlsx" |
|
||||
name="bank.reconciliation.xlsx" |
|
||||
file="bank.reconciliation.xlsx" |
|
||||
print_report_name="'bank_reconciliation-%s' % (object.date)" |
|
||||
/> |
|
||||
|
<report |
||||
|
id="bank_reconciliation_xlsx" |
||||
|
model="bank.reconciliation.report.wizard" |
||||
|
string="Bank Reconciliation XLSX" |
||||
|
report_type="xlsx" |
||||
|
name="bank.reconciliation.xlsx" |
||||
|
file="bank.reconciliation.xlsx" |
||||
|
print_report_name="'bank_reconciliation-%s' % (object.date)" |
||||
|
/> |
||||
<!-- print_report_name doesn't work here... --> |
<!-- print_report_name doesn't work here... --> |
||||
|
|
||||
</odoo> |
</odoo> |
@ -1,24 +1,23 @@ |
|||||
<?xml version="1.0" encoding="utf-8"?> |
|
||||
|
<?xml version="1.0" encoding="utf-8" ?> |
||||
<!-- |
<!-- |
||||
Copyright 2017-2020 Akretion France (http://www.akretion.com/) |
Copyright 2017-2020 Akretion France (http://www.akretion.com/) |
||||
@author: Alexis de Lattre <alexis.delattre@akretion.com> |
@author: Alexis de Lattre <alexis.delattre@akretion.com> |
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). |
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). |
||||
--> |
--> |
||||
|
|
||||
<odoo> |
<odoo> |
||||
|
|
||||
|
|
||||
<record id="view_bank_statement_form" model="ir.ui.view"> |
|
||||
<field name="name">bank_rec_summary.account.bank.statement.form</field> |
|
||||
<field name="model">account.bank.statement</field> |
|
||||
<field name="inherit_id" ref="account.view_bank_statement_form"/> |
|
||||
<field name="arch" type="xml"> |
|
||||
<button name="check_confirm_bank" position="after"> |
|
||||
<button name="%(bank_reconciliation_report_wizard_action)d" type="action" |
|
||||
string="Bank Reconciliation Report" context="{'default_journal_ids': [journal_id]}"/> |
|
||||
</button> |
|
||||
</field> |
|
||||
</record> |
|
||||
|
|
||||
|
|
||||
|
<record id="view_bank_statement_form" model="ir.ui.view"> |
||||
|
<field name="name">bank_rec_summary.account.bank.statement.form</field> |
||||
|
<field name="model">account.bank.statement</field> |
||||
|
<field name="inherit_id" ref="account.view_bank_statement_form" /> |
||||
|
<field name="arch" type="xml"> |
||||
|
<button name="check_confirm_bank" position="after"> |
||||
|
<button |
||||
|
name="%(bank_reconciliation_report_wizard_action)d" |
||||
|
type="action" |
||||
|
string="Bank Reconciliation Report" |
||||
|
context="{'default_journal_ids': [journal_id]}" |
||||
|
/> |
||||
|
</button> |
||||
|
</field> |
||||
|
</record> |
||||
</odoo> |
</odoo> |
@ -1,32 +1,32 @@ |
|||||
<?xml version="1.0" encoding="utf-8"?> |
|
||||
|
<?xml version="1.0" encoding="utf-8" ?> |
||||
<!-- |
<!-- |
||||
Copyright 2018-2020 Akretion France (http://www.akretion.com/) |
Copyright 2018-2020 Akretion France (http://www.akretion.com/) |
||||
@author: Alexis de Lattre <alexis.delattre@akretion.com> |
@author: Alexis de Lattre <alexis.delattre@akretion.com> |
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). |
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). |
||||
--> |
--> |
||||
|
|
||||
<odoo> |
<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-4 o_kanban_card_manage_section o_kanban_manage_new"> |
|
||||
<div class="o_kanban_card_manage_title"> |
|
||||
<span>Report</span> |
|
||||
|
<!-- 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-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> |
</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> |
|
||||
|
|
||||
|
|
||||
|
</xpath> |
||||
|
</field> |
||||
|
</record> |
||||
</odoo> |
</odoo> |
@ -1,23 +1,18 @@ |
|||||
<?xml version="1.0" encoding="utf-8"?> |
|
||||
|
<?xml version="1.0" encoding="utf-8" ?> |
||||
<!-- |
<!-- |
||||
Copyright 2017-2020 Akretion France (http://www.akretion.com/) |
Copyright 2017-2020 Akretion France (http://www.akretion.com/) |
||||
Alexis de Lattre <alexis.delattre@akretion.com> |
Alexis de Lattre <alexis.delattre@akretion.com> |
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). |
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). |
||||
--> |
--> |
||||
|
|
||||
<odoo> |
<odoo> |
||||
|
|
||||
|
|
||||
<record id="view_move_line_form" model="ir.ui.view"> |
|
||||
<field name="name">bank_rec_summary.account_move_line_form</field> |
|
||||
<field name="model">account.move.line</field> |
|
||||
<field name="inherit_id" ref="account.view_move_line_form"/> |
|
||||
<field name="arch" type="xml"> |
|
||||
<field name="statement_id" position="after"> |
|
||||
<field name="statement_line_date"/> |
|
||||
|
<record id="view_move_line_form" model="ir.ui.view"> |
||||
|
<field name="name">bank_rec_summary.account_move_line_form</field> |
||||
|
<field name="model">account.move.line</field> |
||||
|
<field name="inherit_id" ref="account.view_move_line_form" /> |
||||
|
<field name="arch" type="xml"> |
||||
|
<field name="statement_id" position="after"> |
||||
|
<field name="statement_line_date" /> |
||||
|
</field> |
||||
</field> |
</field> |
||||
</field> |
|
||||
</record> |
|
||||
|
|
||||
|
|
||||
|
</record> |
||||
</odoo> |
</odoo> |
@ -1,42 +1,42 @@ |
|||||
<?xml version="1.0" encoding="utf-8"?> |
|
||||
|
<?xml version="1.0" encoding="utf-8" ?> |
||||
<!-- |
<!-- |
||||
Copyright 2017-2020 Akretion France (http://www.akretion.com/) |
Copyright 2017-2020 Akretion France (http://www.akretion.com/) |
||||
@author: Alexis de Lattre <alexis.delattre@akretion.com> |
@author: Alexis de Lattre <alexis.delattre@akretion.com> |
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). |
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). |
||||
--> |
--> |
||||
|
|
||||
<odoo> |
<odoo> |
||||
|
|
||||
|
|
||||
<record id="bank_reconciliation_report_wizard_form" model="ir.ui.view"> |
|
||||
<field name="name">bank.reconciliation.report.wizard.form</field> |
|
||||
<field name="model">bank.reconciliation.report.wizard</field> |
|
||||
<field name="arch" type="xml"> |
|
||||
<form string="Bank Reconciliation Report"> |
|
||||
<group name="main"> |
|
||||
<field name="date"/> |
|
||||
<field name="journal_ids" widget="many2many_tags"/> |
|
||||
</group> |
|
||||
<footer> |
|
||||
<button name="open_xlsx" string="Export XLSX" type="object" class="btn-primary"/> |
|
||||
<button special="cancel" string="Cancel"/> |
|
||||
</footer> |
|
||||
</form> |
|
||||
</field> |
|
||||
</record> |
|
||||
|
|
||||
<record id="bank_reconciliation_report_wizard_action" model="ir.actions.act_window"> |
|
||||
<field name="name">Bank Reconciliation</field> |
|
||||
<field name="res_model">bank.reconciliation.report.wizard</field> |
|
||||
<field name="view_mode">form</field> |
|
||||
<field name="target">new</field> |
|
||||
</record> |
|
||||
|
|
||||
<menuitem id="bank_reconciliation_report_wizard_menu" |
|
||||
|
<record id="bank_reconciliation_report_wizard_form" model="ir.ui.view"> |
||||
|
<field name="name">bank.reconciliation.report.wizard.form</field> |
||||
|
<field name="model">bank.reconciliation.report.wizard</field> |
||||
|
<field name="arch" type="xml"> |
||||
|
<form string="Bank Reconciliation Report"> |
||||
|
<group name="main"> |
||||
|
<field name="date" /> |
||||
|
<field name="journal_ids" widget="many2many_tags" /> |
||||
|
</group> |
||||
|
<footer> |
||||
|
<button |
||||
|
name="open_xlsx" |
||||
|
string="Export XLSX" |
||||
|
type="object" |
||||
|
class="btn-primary" |
||||
|
/> |
||||
|
<button special="cancel" string="Cancel" /> |
||||
|
</footer> |
||||
|
</form> |
||||
|
</field> |
||||
|
</record> |
||||
|
<record id="bank_reconciliation_report_wizard_action" model="ir.actions.act_window"> |
||||
|
<field name="name">Bank Reconciliation</field> |
||||
|
<field name="res_model">bank.reconciliation.report.wizard</field> |
||||
|
<field name="view_mode">form</field> |
||||
|
<field name="target">new</field> |
||||
|
</record> |
||||
|
<menuitem |
||||
|
id="bank_reconciliation_report_wizard_menu" |
||||
action="bank_reconciliation_report_wizard_action" |
action="bank_reconciliation_report_wizard_action" |
||||
parent="account_financial_report.menu_oca_reports" |
parent="account_financial_report.menu_oca_reports" |
||||
groups="account.group_account_manager,account.group_account_user" |
groups="account.group_account_manager,account.group_account_user" |
||||
sequence="100"/> |
|
||||
|
|
||||
|
|
||||
|
sequence="100" |
||||
|
/> |
||||
</odoo> |
</odoo> |
@ -0,0 +1 @@ |
|||||
|
../../../../account_bank_reconciliation_summary_xlsx |
@ -0,0 +1,6 @@ |
|||||
|
import setuptools |
||||
|
|
||||
|
setuptools.setup( |
||||
|
setup_requires=['setuptools-odoo'], |
||||
|
odoo_addon=True, |
||||
|
) |
Write
Preview
Loading…
Cancel
Save
Reference in new issue