diff --git a/account_bank_reconciliation_summary_xlsx/README.rst b/account_bank_reconciliation_summary_xlsx/README.rst new file mode 100644 index 00000000000..f1d336b56ff --- /dev/null +++ b/account_bank_reconciliation_summary_xlsx/README.rst @@ -0,0 +1,111 @@ +========================== +Bank Reconciliation Report +========================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:7846a94ef99eba8950b247c0c5046fe84ed0023fa2bfbee2cd9d0948134fbf27 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png + :target: https://odoo-community.org/page/development-status + :alt: Beta +.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Faccount--financial--reporting-lightgray.png?logo=github + :target: https://github.com/OCA/account-financial-reporting/tree/18.0/account_bank_reconciliation_summary_xlsx + :alt: OCA/account-financial-reporting +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/account-financial-reporting-18-0/account-financial-reporting-18-0-account_bank_reconciliation_summary_xlsx + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png + :target: https://runboat.odoo-community.org/builds?repo=OCA/account-financial-reporting&target_branch=18.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module adds a Bank Reconciliation Report in Odoo in XLSX format. +For each bank journal, the report displays: + +1. The balance of the bank account in the accounting, +2. The list of journal items of the bank account not linked to any bank + statement lines, +3. The list of draft bank statement lines not linked to any journal + items, +4. The computed balance of the bank account at the bank. + +The last field (computed balance of the bank account at the bank) must +be compared to the real bank account balance at the bank. If there is a +difference, you need to find the error in the accounting. The field +*Computed balance of the bank account at the bank* is a formula, so you +can easily change its computation to try to find the difference with the +real bank account balance at the bank. + +**Table of contents** + +.. contents:: + :local: + +Configuration +============= + +This module doesn't require any configuration. + +Usage +===== + +You can launch the Bank Reconciliation Report wizard from: + +- the menu *Invoicing > Reporting > OCA accounting reports > Bank + Reconciliation*, +- the form view of a bank statement: click on the button *Bank + Reconciliation Report*, +- the invoicing dashboard: on a bank journal, click on the options, then + select *Bank Reconciliation*. + +Bug Tracker +=========== + +Bugs are tracked on `GitHub Issues `_. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us to smash it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +------- + +* Akretion + +Contributors +------------ + +- Alexis de Lattre +- `Heliconia Solutions Pvt. Ltd. `__ + + - Bhavesh Heliconia + +Maintainers +----------- + +This module is maintained by the OCA. + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use. + +This module is part of the `OCA/account-financial-reporting `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/account_bank_reconciliation_summary_xlsx/__init__.py b/account_bank_reconciliation_summary_xlsx/__init__.py new file mode 100644 index 00000000000..7660e7bf616 --- /dev/null +++ b/account_bank_reconciliation_summary_xlsx/__init__.py @@ -0,0 +1,3 @@ +from . import models +from . import report +from . import wizard diff --git a/account_bank_reconciliation_summary_xlsx/__manifest__.py b/account_bank_reconciliation_summary_xlsx/__manifest__.py new file mode 100644 index 00000000000..5e07cf3a5e6 --- /dev/null +++ b/account_bank_reconciliation_summary_xlsx/__manifest__.py @@ -0,0 +1,22 @@ +# Copyright 2017-2020 Akretion France (http://www.akretion.com/) +# @author: Alexis de Lattre +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +{ + "name": "Bank Reconciliation Report", + "version": "18.0.1.0.0", + "license": "AGPL-3", + "author": "Akretion,Odoo Community Association (OCA)", + "website": "https://github.com/OCA/account-financial-reporting", + "summary": "XLSX report to help on bank reconciliation", + "depends": ["account_financial_report", "report_xlsx", "account_statement_base"], + "data": [ + "security/ir.model.access.csv", + "report/report.xml", + "wizard/bank_reconciliation_report_wizard_view.xml", + "views/account_bank_statement.xml", + "views/account_move_line.xml", + "views/account_journal.xml", + ], + "installable": True, +} diff --git a/account_bank_reconciliation_summary_xlsx/i18n/account_bank_reconciliation_summary_xlsx.pot b/account_bank_reconciliation_summary_xlsx/i18n/account_bank_reconciliation_summary_xlsx.pot new file mode 100644 index 00000000000..82ee8ec2649 --- /dev/null +++ b/account_bank_reconciliation_summary_xlsx/i18n/account_bank_reconciliation_summary_xlsx.pot @@ -0,0 +1,226 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_bank_reconciliation_summary_xlsx +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 13.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: account_bank_reconciliation_summary_xlsx +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:0 +#, python-format +msgid "%s - %s - Bank Reconciliation" +msgstr "" + +#. module: account_bank_reconciliation_summary_xlsx +#: model:ir.actions.report,print_report_name:account_bank_reconciliation_summary_xlsx.bank_reconciliation_xlsx +msgid "'bank_reconciliation-%s' % (object.date)" +msgstr "" + +#. module: account_bank_reconciliation_summary_xlsx +#: model_terms:ir.ui.view,arch_db:account_bank_reconciliation_summary_xlsx.account_journal_dashboard_kanban_view +msgid "Report" +msgstr "" + +#. module: account_bank_reconciliation_summary_xlsx +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:0 +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:0 +#, python-format +msgid "Amount" +msgstr "" + +#. module: account_bank_reconciliation_summary_xlsx +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:0 +#, python-format +msgid "Balance %s:" +msgstr "" + +#. module: account_bank_reconciliation_summary_xlsx +#: model:ir.model.fields,field_description:account_bank_reconciliation_summary_xlsx.field_bank_reconciliation_report_wizard__journal_ids +msgid "Bank Journals" +msgstr "" + +#. module: account_bank_reconciliation_summary_xlsx +#: model:ir.actions.act_window,name:account_bank_reconciliation_summary_xlsx.bank_reconciliation_report_wizard_action +#: model:ir.ui.menu,name:account_bank_reconciliation_summary_xlsx.bank_reconciliation_report_wizard_menu +#: model_terms:ir.ui.view,arch_db:account_bank_reconciliation_summary_xlsx.account_journal_dashboard_kanban_view +msgid "Bank Reconciliation" +msgstr "" + +#. module: account_bank_reconciliation_summary_xlsx +#: model_terms:ir.ui.view,arch_db:account_bank_reconciliation_summary_xlsx.bank_reconciliation_report_wizard_form +#: model_terms:ir.ui.view,arch_db:account_bank_reconciliation_summary_xlsx.view_bank_statement_form +msgid "Bank Reconciliation Report" +msgstr "" + +#. module: account_bank_reconciliation_summary_xlsx +#: model:ir.model,name:account_bank_reconciliation_summary_xlsx.model_bank_reconciliation_report_wizard +msgid "Bank Reconciliation Report Wizard" +msgstr "" + +#. module: account_bank_reconciliation_summary_xlsx +#: model:ir.actions.report,name:account_bank_reconciliation_summary_xlsx.bank_reconciliation_xlsx +msgid "Bank Reconciliation XLSX" +msgstr "" + +#. module: account_bank_reconciliation_summary_xlsx +#: model:ir.model,name:account_bank_reconciliation_summary_xlsx.model_report_bank_reconciliation_xlsx +msgid "Bank Reconciliation XLSX Report" +msgstr "" + +#. module: account_bank_reconciliation_summary_xlsx +#: model_terms:ir.ui.view,arch_db:account_bank_reconciliation_summary_xlsx.bank_reconciliation_report_wizard_form +msgid "Cancel" +msgstr "" + +#. module: account_bank_reconciliation_summary_xlsx +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:0 +#, python-format +msgid "Computed Bank Account Balance at the Bank:" +msgstr "" + +#. module: account_bank_reconciliation_summary_xlsx +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:0 +#, python-format +msgid "Counter-part" +msgstr "" + +#. module: account_bank_reconciliation_summary_xlsx +#: model:ir.model.fields,field_description:account_bank_reconciliation_summary_xlsx.field_bank_reconciliation_report_wizard__create_uid +msgid "Created by" +msgstr "" + +#. module: account_bank_reconciliation_summary_xlsx +#: model:ir.model.fields,field_description:account_bank_reconciliation_summary_xlsx.field_bank_reconciliation_report_wizard__create_date +msgid "Created on" +msgstr "" + +#. module: account_bank_reconciliation_summary_xlsx +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:0 +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:0 +#: model:ir.model.fields,field_description:account_bank_reconciliation_summary_xlsx.field_bank_reconciliation_report_wizard__date +#, python-format +msgid "Date" +msgstr "" + +#. module: account_bank_reconciliation_summary_xlsx +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:0 +#, python-format +msgid "Date:" +msgstr "" + +#. module: account_bank_reconciliation_summary_xlsx +#: model:ir.model.fields,field_description:account_bank_reconciliation_summary_xlsx.field_bank_reconciliation_report_wizard__display_name +#: model:ir.model.fields,field_description:account_bank_reconciliation_summary_xlsx.field_report_bank_reconciliation_xlsx__display_name +msgid "Display Name" +msgstr "" + +#. module: account_bank_reconciliation_summary_xlsx +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:0 +#, python-format +msgid "Draft bank statement lines:" +msgstr "" + +#. module: account_bank_reconciliation_summary_xlsx +#: model_terms:ir.ui.view,arch_db:account_bank_reconciliation_summary_xlsx.bank_reconciliation_report_wizard_form +msgid "Export XLSX" +msgstr "" + +#. module: account_bank_reconciliation_summary_xlsx +#: model:ir.model.fields,field_description:account_bank_reconciliation_summary_xlsx.field_bank_reconciliation_report_wizard__id +#: model:ir.model.fields,field_description:account_bank_reconciliation_summary_xlsx.field_report_bank_reconciliation_xlsx__id +msgid "ID" +msgstr "" + +#. module: account_bank_reconciliation_summary_xlsx +#: model:ir.model,name:account_bank_reconciliation_summary_xlsx.model_account_move_line +msgid "Journal Item" +msgstr "" + +#. module: account_bank_reconciliation_summary_xlsx +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:0 +#, python-format +msgid "Journal items of account %s not linked to a bank statement line:" +msgstr "" + +#. module: account_bank_reconciliation_summary_xlsx +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:0 +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:0 +#, python-format +msgid "Label" +msgstr "" + +#. module: account_bank_reconciliation_summary_xlsx +#: model:ir.model.fields,field_description:account_bank_reconciliation_summary_xlsx.field_bank_reconciliation_report_wizard____last_update +#: model:ir.model.fields,field_description:account_bank_reconciliation_summary_xlsx.field_report_bank_reconciliation_xlsx____last_update +msgid "Last Modified on" +msgstr "" + +#. module: account_bank_reconciliation_summary_xlsx +#: model:ir.model.fields,field_description:account_bank_reconciliation_summary_xlsx.field_bank_reconciliation_report_wizard__write_uid +msgid "Last Updated by" +msgstr "" + +#. module: account_bank_reconciliation_summary_xlsx +#: model:ir.model.fields,field_description:account_bank_reconciliation_summary_xlsx.field_bank_reconciliation_report_wizard__write_date +msgid "Last Updated on" +msgstr "" + +#. module: account_bank_reconciliation_summary_xlsx +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:0 +#, python-format +msgid "Move Number" +msgstr "" + +#. module: account_bank_reconciliation_summary_xlsx +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:0 +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:0 +#, python-format +msgid "NONE" +msgstr "" + +#. module: account_bank_reconciliation_summary_xlsx +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:0 +#, python-format +msgid "No Bank Journal" +msgstr "" + +#. module: account_bank_reconciliation_summary_xlsx +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:0 +#, python-format +msgid "No bank journal selected. This report is only for bank journals." +msgstr "" + +#. module: account_bank_reconciliation_summary_xlsx +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:0 +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:0 +#, python-format +msgid "Partner" +msgstr "" + +#. module: account_bank_reconciliation_summary_xlsx +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:0 +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:0 +#, python-format +msgid "Ref." +msgstr "" + +#. module: account_bank_reconciliation_summary_xlsx +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:0 +#: model:ir.model.fields,field_description:account_bank_reconciliation_summary_xlsx.field_account_move_line__statement_line_date +#, python-format +msgid "Statement Line Date" +msgstr "" + +#. module: account_bank_reconciliation_summary_xlsx +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:0 +#, python-format +msgid "Statement Ref." +msgstr "" diff --git a/account_bank_reconciliation_summary_xlsx/i18n/ca.po b/account_bank_reconciliation_summary_xlsx/i18n/ca.po new file mode 100644 index 00000000000..7858536ec67 --- /dev/null +++ b/account_bank_reconciliation_summary_xlsx/i18n/ca.po @@ -0,0 +1,226 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_bank_reconciliation_summary_xlsx +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 13.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2022-10-01 01:07+0000\n" +"Last-Translator: pere-aquarian \n" +"Language-Team: none\n" +"Language: ca\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 4.3.2\n" + +#. module: account_bank_reconciliation_summary_xlsx +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:0 +#, python-format +msgid "%s - %s - Bank Reconciliation" +msgstr "%s - %s - Conciliació bancària" + +#. module: account_bank_reconciliation_summary_xlsx +#: model:ir.actions.report,print_report_name:account_bank_reconciliation_summary_xlsx.bank_reconciliation_xlsx +msgid "'bank_reconciliation-%s' % (object.date)" +msgstr "'bank_reconciliation-%s' % (object.date)" + +#. module: account_bank_reconciliation_summary_xlsx +#: model_terms:ir.ui.view,arch_db:account_bank_reconciliation_summary_xlsx.account_journal_dashboard_kanban_view +msgid "Report" +msgstr "Informe" + +#. module: account_bank_reconciliation_summary_xlsx +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:0 +#, python-format +msgid "Amount" +msgstr "Import" + +#. module: account_bank_reconciliation_summary_xlsx +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:0 +#, python-format +msgid "Balance %s:" +msgstr "Saldo %s:" + +#. module: account_bank_reconciliation_summary_xlsx +#: model:ir.model.fields,field_description:account_bank_reconciliation_summary_xlsx.field_bank_reconciliation_report_wizard__journal_ids +msgid "Bank Journals" +msgstr "Diaris bancaris" + +#. module: account_bank_reconciliation_summary_xlsx +#: model:ir.actions.act_window,name:account_bank_reconciliation_summary_xlsx.bank_reconciliation_report_wizard_action +#: model:ir.ui.menu,name:account_bank_reconciliation_summary_xlsx.bank_reconciliation_report_wizard_menu +#: model_terms:ir.ui.view,arch_db:account_bank_reconciliation_summary_xlsx.account_journal_dashboard_kanban_view +msgid "Bank Reconciliation" +msgstr "Conciliació bancària" + +#. module: account_bank_reconciliation_summary_xlsx +#: model_terms:ir.ui.view,arch_db:account_bank_reconciliation_summary_xlsx.bank_reconciliation_report_wizard_form +#: model_terms:ir.ui.view,arch_db:account_bank_reconciliation_summary_xlsx.view_bank_statement_form +msgid "Bank Reconciliation Report" +msgstr "Informe de conciliació bancària" + +#. module: account_bank_reconciliation_summary_xlsx +#: model:ir.model,name:account_bank_reconciliation_summary_xlsx.model_bank_reconciliation_report_wizard +msgid "Bank Reconciliation Report Wizard" +msgstr "Informe de l'assistent de conciliació bancària" + +#. module: account_bank_reconciliation_summary_xlsx +#: model:ir.actions.report,name:account_bank_reconciliation_summary_xlsx.bank_reconciliation_xlsx +msgid "Bank Reconciliation XLSX" +msgstr "Conciliació bancària XLSX" + +#. module: account_bank_reconciliation_summary_xlsx +#: model:ir.model,name:account_bank_reconciliation_summary_xlsx.model_report_bank_reconciliation_xlsx +msgid "Bank Reconciliation XLSX Report" +msgstr "Informe XLSX conciliació bancària" + +#. module: account_bank_reconciliation_summary_xlsx +#: model_terms:ir.ui.view,arch_db:account_bank_reconciliation_summary_xlsx.bank_reconciliation_report_wizard_form +msgid "Cancel" +msgstr "Cancela" + +#. module: account_bank_reconciliation_summary_xlsx +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:0 +#, python-format +msgid "Computed Bank Account Balance at the Bank:" +msgstr "Saldo calculat del compte del banc:" + +#. module: account_bank_reconciliation_summary_xlsx +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:0 +#, python-format +msgid "Counter-part" +msgstr "Contrapartida" + +#. module: account_bank_reconciliation_summary_xlsx +#: model:ir.model.fields,field_description:account_bank_reconciliation_summary_xlsx.field_bank_reconciliation_report_wizard__create_uid +msgid "Created by" +msgstr "Creat per" + +#. module: account_bank_reconciliation_summary_xlsx +#: model:ir.model.fields,field_description:account_bank_reconciliation_summary_xlsx.field_bank_reconciliation_report_wizard__create_date +msgid "Created on" +msgstr "Creat el" + +#. module: account_bank_reconciliation_summary_xlsx +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:0 +#: model:ir.model.fields,field_description:account_bank_reconciliation_summary_xlsx.field_bank_reconciliation_report_wizard__date +#, python-format +msgid "Date" +msgstr "Data" + +#. module: account_bank_reconciliation_summary_xlsx +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:0 +#, python-format +msgid "Date:" +msgstr "Data:" + +#. module: account_bank_reconciliation_summary_xlsx +#: model:ir.model.fields,field_description:account_bank_reconciliation_summary_xlsx.field_bank_reconciliation_report_wizard__display_name +#: model:ir.model.fields,field_description:account_bank_reconciliation_summary_xlsx.field_report_bank_reconciliation_xlsx__display_name +msgid "Display Name" +msgstr "Nom a mostrar" + +#. module: account_bank_reconciliation_summary_xlsx +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:0 +#, python-format +msgid "Draft bank statement lines:" +msgstr "Línies no validades de l'extracte bancari:" + +#. module: account_bank_reconciliation_summary_xlsx +#: model_terms:ir.ui.view,arch_db:account_bank_reconciliation_summary_xlsx.bank_reconciliation_report_wizard_form +msgid "Export XLSX" +msgstr "Exportat XLSX" + +#. module: account_bank_reconciliation_summary_xlsx +#: model:ir.model.fields,field_description:account_bank_reconciliation_summary_xlsx.field_bank_reconciliation_report_wizard__id +#: model:ir.model.fields,field_description:account_bank_reconciliation_summary_xlsx.field_report_bank_reconciliation_xlsx__id +msgid "ID" +msgstr "ID" + +#. module: account_bank_reconciliation_summary_xlsx +#: model:ir.model,name:account_bank_reconciliation_summary_xlsx.model_account_move_line +msgid "Journal Item" +msgstr "Apunt comptable" + +#. module: account_bank_reconciliation_summary_xlsx +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:0 +#, python-format +msgid "Journal items of account %s not linked to a bank statement line:" +msgstr "" +"Apunts comptables del compte %s no enllaçades a una línia d'extracte bancari:" + +#. module: account_bank_reconciliation_summary_xlsx +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:0 +#, python-format +msgid "Label" +msgstr "Etiqueta" + +#. module: account_bank_reconciliation_summary_xlsx +#: model:ir.model.fields,field_description:account_bank_reconciliation_summary_xlsx.field_bank_reconciliation_report_wizard____last_update +#: model:ir.model.fields,field_description:account_bank_reconciliation_summary_xlsx.field_report_bank_reconciliation_xlsx____last_update +msgid "Last Modified on" +msgstr "Darrera modificació el" + +#. module: account_bank_reconciliation_summary_xlsx +#: model:ir.model.fields,field_description:account_bank_reconciliation_summary_xlsx.field_bank_reconciliation_report_wizard__write_uid +msgid "Last Updated by" +msgstr "Darreta actualització per" + +#. module: account_bank_reconciliation_summary_xlsx +#: model:ir.model.fields,field_description:account_bank_reconciliation_summary_xlsx.field_bank_reconciliation_report_wizard__write_date +msgid "Last Updated on" +msgstr "Darrera actualització el" + +#. module: account_bank_reconciliation_summary_xlsx +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:0 +#, python-format +msgid "Move Number" +msgstr "Número de moviment" + +#. module: account_bank_reconciliation_summary_xlsx +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:0 +#, python-format +msgid "NONE" +msgstr "Cap" + +#. module: account_bank_reconciliation_summary_xlsx +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:0 +#, python-format +msgid "No Bank Journal" +msgstr "Sense diari bancari" + +#. module: account_bank_reconciliation_summary_xlsx +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:0 +#, python-format +msgid "No bank journal selected. This report is only for bank journals." +msgstr "" +"No s'ha seleccionat diari bancari. Aquest informe només és per diaris " +"bancaris." + +#. module: account_bank_reconciliation_summary_xlsx +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:0 +#, python-format +msgid "Partner" +msgstr "Partner" + +#. module: account_bank_reconciliation_summary_xlsx +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:0 +#, python-format +msgid "Ref." +msgstr "Ref." + +#. module: account_bank_reconciliation_summary_xlsx +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:0 +#: model:ir.model.fields,field_description:account_bank_reconciliation_summary_xlsx.field_account_move_line__statement_line_date +#, python-format +msgid "Statement Line Date" +msgstr "Data de la línia de l'extracte" + +#. module: account_bank_reconciliation_summary_xlsx +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:0 +#, python-format +msgid "Statement Ref." +msgstr "Referència de l'extracte" diff --git a/account_bank_reconciliation_summary_xlsx/i18n/es.po b/account_bank_reconciliation_summary_xlsx/i18n/es.po new file mode 100644 index 00000000000..73487af3750 --- /dev/null +++ b/account_bank_reconciliation_summary_xlsx/i18n/es.po @@ -0,0 +1,226 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_bank_reconciliation_summary_xlsx +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 13.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2022-08-12 18:07+0000\n" +"Last-Translator: Luis D. Lafaurie \n" +"Language-Team: none\n" +"Language: es\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 4.3.2\n" + +#. module: account_bank_reconciliation_summary_xlsx +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:0 +#, python-format +msgid "%s - %s - Bank Reconciliation" +msgstr "%s - %s - Conciliación bancaria" + +#. module: account_bank_reconciliation_summary_xlsx +#: model:ir.actions.report,print_report_name:account_bank_reconciliation_summary_xlsx.bank_reconciliation_xlsx +msgid "'bank_reconciliation-%s' % (object.date)" +msgstr "'bank_reconciliation-%s' % (object.date)" + +#. module: account_bank_reconciliation_summary_xlsx +#: model_terms:ir.ui.view,arch_db:account_bank_reconciliation_summary_xlsx.account_journal_dashboard_kanban_view +msgid "Report" +msgstr "Informe" + +#. module: account_bank_reconciliation_summary_xlsx +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:0 +#, python-format +msgid "Amount" +msgstr "Importe" + +#. module: account_bank_reconciliation_summary_xlsx +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:0 +#, python-format +msgid "Balance %s:" +msgstr "Saldo %s:" + +#. module: account_bank_reconciliation_summary_xlsx +#: model:ir.model.fields,field_description:account_bank_reconciliation_summary_xlsx.field_bank_reconciliation_report_wizard__journal_ids +msgid "Bank Journals" +msgstr "Diarios de banco" + +#. module: account_bank_reconciliation_summary_xlsx +#: model:ir.actions.act_window,name:account_bank_reconciliation_summary_xlsx.bank_reconciliation_report_wizard_action +#: model:ir.ui.menu,name:account_bank_reconciliation_summary_xlsx.bank_reconciliation_report_wizard_menu +#: model_terms:ir.ui.view,arch_db:account_bank_reconciliation_summary_xlsx.account_journal_dashboard_kanban_view +msgid "Bank Reconciliation" +msgstr "Conciliación bancaria" + +#. module: account_bank_reconciliation_summary_xlsx +#: model_terms:ir.ui.view,arch_db:account_bank_reconciliation_summary_xlsx.bank_reconciliation_report_wizard_form +#: model_terms:ir.ui.view,arch_db:account_bank_reconciliation_summary_xlsx.view_bank_statement_form +msgid "Bank Reconciliation Report" +msgstr "Informe de conciliación bancaria" + +#. module: account_bank_reconciliation_summary_xlsx +#: model:ir.model,name:account_bank_reconciliation_summary_xlsx.model_bank_reconciliation_report_wizard +msgid "Bank Reconciliation Report Wizard" +msgstr "Asistente para informe de conciliación bancaria" + +#. module: account_bank_reconciliation_summary_xlsx +#: model:ir.actions.report,name:account_bank_reconciliation_summary_xlsx.bank_reconciliation_xlsx +msgid "Bank Reconciliation XLSX" +msgstr "Conciliación bancaria XLSX" + +#. module: account_bank_reconciliation_summary_xlsx +#: model:ir.model,name:account_bank_reconciliation_summary_xlsx.model_report_bank_reconciliation_xlsx +msgid "Bank Reconciliation XLSX Report" +msgstr "Informe de conciliación bancaria XLSX" + +#. module: account_bank_reconciliation_summary_xlsx +#: model_terms:ir.ui.view,arch_db:account_bank_reconciliation_summary_xlsx.bank_reconciliation_report_wizard_form +msgid "Cancel" +msgstr "Cancelar" + +#. module: account_bank_reconciliation_summary_xlsx +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:0 +#, python-format +msgid "Computed Bank Account Balance at the Bank:" +msgstr "Saldo en cuenta bancaria calculado por el banco:" + +#. module: account_bank_reconciliation_summary_xlsx +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:0 +#, python-format +msgid "Counter-part" +msgstr "Contra-partida" + +#. module: account_bank_reconciliation_summary_xlsx +#: model:ir.model.fields,field_description:account_bank_reconciliation_summary_xlsx.field_bank_reconciliation_report_wizard__create_uid +msgid "Created by" +msgstr "Creado por" + +#. module: account_bank_reconciliation_summary_xlsx +#: model:ir.model.fields,field_description:account_bank_reconciliation_summary_xlsx.field_bank_reconciliation_report_wizard__create_date +msgid "Created on" +msgstr "Creado el" + +#. module: account_bank_reconciliation_summary_xlsx +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:0 +#: model:ir.model.fields,field_description:account_bank_reconciliation_summary_xlsx.field_bank_reconciliation_report_wizard__date +#, python-format +msgid "Date" +msgstr "Fecha" + +#. module: account_bank_reconciliation_summary_xlsx +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:0 +#, python-format +msgid "Date:" +msgstr "Fecha:" + +#. module: account_bank_reconciliation_summary_xlsx +#: model:ir.model.fields,field_description:account_bank_reconciliation_summary_xlsx.field_bank_reconciliation_report_wizard__display_name +#: model:ir.model.fields,field_description:account_bank_reconciliation_summary_xlsx.field_report_bank_reconciliation_xlsx__display_name +msgid "Display Name" +msgstr "Nombre mostrado" + +#. module: account_bank_reconciliation_summary_xlsx +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:0 +#, python-format +msgid "Draft bank statement lines:" +msgstr "Borrador de líneas del extracto bancario:" + +#. module: account_bank_reconciliation_summary_xlsx +#: model_terms:ir.ui.view,arch_db:account_bank_reconciliation_summary_xlsx.bank_reconciliation_report_wizard_form +msgid "Export XLSX" +msgstr "Exportar XLSX" + +#. module: account_bank_reconciliation_summary_xlsx +#: model:ir.model.fields,field_description:account_bank_reconciliation_summary_xlsx.field_bank_reconciliation_report_wizard__id +#: model:ir.model.fields,field_description:account_bank_reconciliation_summary_xlsx.field_report_bank_reconciliation_xlsx__id +msgid "ID" +msgstr "ID" + +#. module: account_bank_reconciliation_summary_xlsx +#: model:ir.model,name:account_bank_reconciliation_summary_xlsx.model_account_move_line +msgid "Journal Item" +msgstr "Apunte contable" + +#. module: account_bank_reconciliation_summary_xlsx +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:0 +#, python-format +msgid "Journal items of account %s not linked to a bank statement line:" +msgstr "" +"Apuntes contables de la cuenta %s no asociados a alguna línea del extracto " +"bancario:" + +#. module: account_bank_reconciliation_summary_xlsx +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:0 +#, python-format +msgid "Label" +msgstr "Etiqueta" + +#. module: account_bank_reconciliation_summary_xlsx +#: model:ir.model.fields,field_description:account_bank_reconciliation_summary_xlsx.field_bank_reconciliation_report_wizard____last_update +#: model:ir.model.fields,field_description:account_bank_reconciliation_summary_xlsx.field_report_bank_reconciliation_xlsx____last_update +msgid "Last Modified on" +msgstr "Modificado el" + +#. module: account_bank_reconciliation_summary_xlsx +#: model:ir.model.fields,field_description:account_bank_reconciliation_summary_xlsx.field_bank_reconciliation_report_wizard__write_uid +msgid "Last Updated by" +msgstr "Actualizado por" + +#. module: account_bank_reconciliation_summary_xlsx +#: model:ir.model.fields,field_description:account_bank_reconciliation_summary_xlsx.field_bank_reconciliation_report_wizard__write_date +msgid "Last Updated on" +msgstr "Actualizado el" + +#. module: account_bank_reconciliation_summary_xlsx +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:0 +#, python-format +msgid "Move Number" +msgstr "Número del movimiento" + +#. module: account_bank_reconciliation_summary_xlsx +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:0 +#, python-format +msgid "NONE" +msgstr "NINGUNO" + +#. module: account_bank_reconciliation_summary_xlsx +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:0 +#, python-format +msgid "No Bank Journal" +msgstr "Sin diario de banco" + +#. module: account_bank_reconciliation_summary_xlsx +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:0 +#, python-format +msgid "No bank journal selected. This report is only for bank journals." +msgstr "" +"Sin diario de banco seleccionado. Este informe es solo para diarios de banco." + +#. module: account_bank_reconciliation_summary_xlsx +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:0 +#, python-format +msgid "Partner" +msgstr "Empresa" + +#. module: account_bank_reconciliation_summary_xlsx +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:0 +#, python-format +msgid "Ref." +msgstr "Ref." + +#. module: account_bank_reconciliation_summary_xlsx +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:0 +#: model:ir.model.fields,field_description:account_bank_reconciliation_summary_xlsx.field_account_move_line__statement_line_date +#, python-format +msgid "Statement Line Date" +msgstr "Fecha de la línea del extracto" + +#. module: account_bank_reconciliation_summary_xlsx +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:0 +#, python-format +msgid "Statement Ref." +msgstr "Ref. del extracto" diff --git a/account_bank_reconciliation_summary_xlsx/i18n/fr.po b/account_bank_reconciliation_summary_xlsx/i18n/fr.po new file mode 100644 index 00000000000..d7c99e07bd4 --- /dev/null +++ b/account_bank_reconciliation_summary_xlsx/i18n/fr.po @@ -0,0 +1,202 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_bank_reconciliation_summary_xlsx +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-12-04 10:29+0000\n" +"PO-Revision-Date: 2018-12-04 10:29+0000\n" +"Last-Translator: <>\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: account_bank_reconciliation_summary_xlsx +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:70 +#, python-format +msgid "%s - Bank Reconciliation" +msgstr "%s - Rapprochement bancaire" + +#. module: account_bank_reconciliation_summary_xlsx +#: model:ir.ui.view,arch_db:account_bank_reconciliation_summary_xlsx.account_journal_dashboard_kanban_view +msgid "Report" +msgstr "Rapport" + +#. module: account_bank_reconciliation_summary_xlsx +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:129 +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:182 +#, python-format +msgid "Amount" +msgstr "Montant" + +#. module: account_bank_reconciliation_summary_xlsx +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:92 +#, python-format +msgid "Balance %s:" +msgstr "Balance %s:" + +#. module: account_bank_reconciliation_summary_xlsx +#: model:ir.model.fields,field_description:account_bank_reconciliation_summary_xlsx.field_bank_reconciliation_report_wizard_journal_ids +msgid "Bank Journals" +msgstr "Journaux de banque" + + +#. module: account_bank_reconciliation_summary_xlsx +#: model:ir.ui.view,arch_db:account_bank_reconciliation_summary_xlsx.bank_reconciliation_report_wizard_form +#: model:ir.ui.view,arch_db:account_bank_reconciliation_summary_xlsx.view_bank_statement_form +msgid "Bank Reconciliation Report" +msgstr "Rapport rapprochement bancaire" + +#. module: account_bank_reconciliation_summary_xlsx +#: model:ir.model,name:account_bank_reconciliation_summary_xlsx.model_bank_reconciliation_report_wizard +msgid "Bank Reconciliation Report Wizard" +msgstr "Wizard raport rapprochement bancaire" + +#. module: account_bank_reconciliation_summary_xlsx +#: model:ir.actions.report.xml,name:account_bank_reconciliation_summary_xlsx.bank_reconciliation_xlsx +msgid "Bank Reconciliation XLSX" +msgstr "Rapprochement bancaire XLSX" + + +#. module: account_bank_reconciliation_summary_xlsx +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:210 +#, python-format +msgid "Computed Bank Account Balance at the Bank:" +msgstr "Solde théorique du compte bancaire :" + +#. module: account_bank_reconciliation_summary_xlsx +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:130 +#, python-format +msgid "Counter-part" +msgstr "Contre partie" + +#. module: account_bank_reconciliation_summary_xlsx +#: model:ir.model.fields,field_description:account_bank_reconciliation_summary_xlsx.field_bank_reconciliation_report_wizard_create_uid +msgid "Created by" +msgstr "Créé par" + +#. module: account_bank_reconciliation_summary_xlsx +#: model:ir.model.fields,field_description:account_bank_reconciliation_summary_xlsx.field_bank_reconciliation_report_wizard_create_date +msgid "Created on" +msgstr "Créé le" + +#. module: account_bank_reconciliation_summary_xlsx +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:128 +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:181 +#: model:ir.model.fields,field_description:account_bank_reconciliation_summary_xlsx.field_bank_reconciliation_report_wizard_date +#, python-format +msgid "Date" +msgstr "Date " + +#. module: account_bank_reconciliation_summary_xlsx +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:83 +#, python-format +msgid "Date:" +msgstr "Date :" + +#. module: account_bank_reconciliation_summary_xlsx +#: model:ir.model.fields,field_description:account_bank_reconciliation_summary_xlsx.field_bank_reconciliation_report_wizard_display_name +msgid "Display Name" +msgstr "Nom affiché" + +#. module: account_bank_reconciliation_summary_xlsx +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:169 +#, python-format +msgid "Draft bank statement lines:" +msgstr "Lignes non validées du relevé bancaire :" + + +#. module: account_bank_reconciliation_summary_xlsx +#: model:ir.model.fields,field_description:account_bank_reconciliation_summary_xlsx.field_bank_reconciliation_report_wizard_id +msgid "ID" +msgstr "ID" + +#. module: account_bank_reconciliation_summary_xlsx +#: model:ir.model,name:account_bank_reconciliation_summary_xlsx.model_account_move_line +msgid "Journal Item" +msgstr "Écriture comptable" + +#. module: account_bank_reconciliation_summary_xlsx +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:113 +#, python-format +msgid "Journal items of account %s not linked to a bank statement line:" +msgstr "Ecritures comptables du compte %s non liées à une ligne de relevé bancaire :" + +#. module: account_bank_reconciliation_summary_xlsx +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:128 +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:181 +#, python-format +msgid "Label" +msgstr "Libellé" + +#. module: account_bank_reconciliation_summary_xlsx +#: model:ir.model.fields,field_description:account_bank_reconciliation_summary_xlsx.field_bank_reconciliation_report_wizard___last_update +msgid "Last Modified on" +msgstr "Dernière modification le" + +#. module: account_bank_reconciliation_summary_xlsx +#: model:ir.model.fields,field_description:account_bank_reconciliation_summary_xlsx.field_bank_reconciliation_report_wizard_write_uid +msgid "Last Updated by" +msgstr "Mis à jour par" + +#. module: account_bank_reconciliation_summary_xlsx +#: model:ir.model.fields,field_description:account_bank_reconciliation_summary_xlsx.field_bank_reconciliation_report_wizard_write_date +msgid "Last Updated on" +msgstr "Mis à jour le" + +#. module: account_bank_reconciliation_summary_xlsx +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:129 +#, python-format +msgid "Move Number" +msgstr "Numéro de pièce" + +#. module: account_bank_reconciliation_summary_xlsx +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:124 +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:177 +#, python-format +msgid "NONE" +msgstr "Rien" + +#. module: account_bank_reconciliation_summary_xlsx +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:215 +#, python-format +msgid "No Bank Journal" +msgstr "Pas de journal de banque" + +#. module: account_bank_reconciliation_summary_xlsx +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:220 +#, python-format +msgid "No bank journal selected. This report is only for bank journals." +msgstr "Pas de journal de banque sélectionné. Ce rapport est uniquement pour les journaux de banque." + +#. module: account_bank_reconciliation_summary_xlsx +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:128 +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:182 +#, python-format +msgid "Partner" +msgstr "Partenaire" + +#. module: account_bank_reconciliation_summary_xlsx +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:128 +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:181 +#, python-format +msgid "Ref." +msgstr "Ref." + +#. module: account_bank_reconciliation_summary_xlsx +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:129 +#: model:ir.model.fields,field_description:account_bank_reconciliation_summary_xlsx.field_account_move_line_statement_line_date +#, python-format +msgid "Statement Line Date" +msgstr "Date ligne relevé" + +#. module: account_bank_reconciliation_summary_xlsx +#: code:addons/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py:182 +#, python-format +msgid "Statement Ref." +msgstr "Ref. relevé" + diff --git a/account_bank_reconciliation_summary_xlsx/models/__init__.py b/account_bank_reconciliation_summary_xlsx/models/__init__.py new file mode 100644 index 00000000000..8795b3bea64 --- /dev/null +++ b/account_bank_reconciliation_summary_xlsx/models/__init__.py @@ -0,0 +1 @@ +from . import account_move_line diff --git a/account_bank_reconciliation_summary_xlsx/models/account_move_line.py b/account_bank_reconciliation_summary_xlsx/models/account_move_line.py new file mode 100644 index 00000000000..a38b26e72d4 --- /dev/null +++ b/account_bank_reconciliation_summary_xlsx/models/account_move_line.py @@ -0,0 +1,13 @@ +# Copyright 2017-2020 Akretion France (http://www.akretion.com/) +# @author: Alexis de Lattre +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import fields, models + + +class AccountMoveLine(models.Model): + _inherit = "account.move.line" + + statement_line_date = fields.Date( + string="Statement Line Date", related="statement_line_id.date", store=True + ) diff --git a/account_bank_reconciliation_summary_xlsx/pyproject.toml b/account_bank_reconciliation_summary_xlsx/pyproject.toml new file mode 100644 index 00000000000..4231d0cccb3 --- /dev/null +++ b/account_bank_reconciliation_summary_xlsx/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/account_bank_reconciliation_summary_xlsx/readme/CONFIGURE.md b/account_bank_reconciliation_summary_xlsx/readme/CONFIGURE.md new file mode 100644 index 00000000000..8b3e65610f7 --- /dev/null +++ b/account_bank_reconciliation_summary_xlsx/readme/CONFIGURE.md @@ -0,0 +1 @@ +This module doesn't require any configuration. diff --git a/account_bank_reconciliation_summary_xlsx/readme/CONTRIBUTORS.md b/account_bank_reconciliation_summary_xlsx/readme/CONTRIBUTORS.md new file mode 100644 index 00000000000..d0ea65f1266 --- /dev/null +++ b/account_bank_reconciliation_summary_xlsx/readme/CONTRIBUTORS.md @@ -0,0 +1,3 @@ +- Alexis de Lattre \ +- [Heliconia Solutions Pvt. Ltd.](https://www.heliconia.io) + - Bhavesh Heliconia diff --git a/account_bank_reconciliation_summary_xlsx/readme/DESCRIPTION.md b/account_bank_reconciliation_summary_xlsx/readme/DESCRIPTION.md new file mode 100644 index 00000000000..5f21bee961f --- /dev/null +++ b/account_bank_reconciliation_summary_xlsx/readme/DESCRIPTION.md @@ -0,0 +1,16 @@ +This module adds a Bank Reconciliation Report in Odoo in XLSX format. +For each bank journal, the report displays: + +1. The balance of the bank account in the accounting, +2. The list of journal items of the bank account not linked to any bank + statement lines, +3. The list of draft bank statement lines not linked to any journal + items, +4. The computed balance of the bank account at the bank. + +The last field (computed balance of the bank account at the bank) must +be compared to the real bank account balance at the bank. If there is a +difference, you need to find the error in the accounting. The field +*Computed balance of the bank account at the bank* is a formula, so you +can easily change its computation to try to find the difference with the +real bank account balance at the bank. diff --git a/account_bank_reconciliation_summary_xlsx/readme/USAGE.md b/account_bank_reconciliation_summary_xlsx/readme/USAGE.md new file mode 100644 index 00000000000..150aff38558 --- /dev/null +++ b/account_bank_reconciliation_summary_xlsx/readme/USAGE.md @@ -0,0 +1,8 @@ +You can launch the Bank Reconciliation Report wizard from: + +- the menu *Invoicing \> Reporting \> OCA accounting reports \> Bank + Reconciliation*, +- the form view of a bank statement: click on the button *Bank + Reconciliation Report*, +- the invoicing dashboard: on a bank journal, click on the options, then + select *Bank Reconciliation*. diff --git a/account_bank_reconciliation_summary_xlsx/report/__init__.py b/account_bank_reconciliation_summary_xlsx/report/__init__.py new file mode 100644 index 00000000000..c23e36d8c00 --- /dev/null +++ b/account_bank_reconciliation_summary_xlsx/report/__init__.py @@ -0,0 +1 @@ +from . import bank_reconciliation_xlsx diff --git a/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py b/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py new file mode 100644 index 00000000000..d6f12fb6b7e --- /dev/null +++ b/account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py @@ -0,0 +1,303 @@ +# Copyright 2017-2020 Akretion France (http://www.akretion.com/) +# @author: Alexis de Lattre +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import fields, models + + +class BankReconciliationXlsx(models.AbstractModel): + _name = "report.bank.reconciliation.xlsx" + _description = "Bank Reconciliation XLSX Report" + _inherit = "report.report_xlsx.abstract" + + def _compute_account_balance(self, journal, date): + bank_account = journal.default_account_id + # TODO: add support for bank accounts in foreign currency + # if not o.currency_id else 'amount_currency' + query = """ + SELECT sum(balance) FROM account_move_line + WHERE account_id=%s AND date <= %s AND parent_state = 'posted'""" + self.env.cr.execute(query, (bank_account.id, date)) + query_results = self.env.cr.dictfetchall() + if query_results: + account_bal = query_results[0].get("sum") or 0.0 + else: + account_bal = 0.0 + return account_bal + + def _prepare_move_lines(self, journal, date): + bank_account = journal.default_account_id + mlines = self.env["account.move.line"].search( + [ + ("account_id", "=", bank_account.id), + ("journal_id", "=", journal.id), # to avoid initial line + ("date", "<=", date), + ("move_id.state", "=", "posted"), + "|", + ("statement_line_date", "=", False), + ("statement_line_date", ">", date), + ] + ) + res = [] + for mline in mlines: + move = mline.move_id + cpart = [] + for line in move.line_ids: + if ( + line.account_id != bank_account + and line.account_id.code not in cpart + ): + cpart.append(line.account_id.code) + counterpart = " ,".join(cpart) + res.append( + { + "date": mline.date, + "label": mline.name, + "ref": mline.ref or "", + "partner": mline.partner_id.display_name or "", + "amount": mline.balance, + "statement_line_date": mline.statement_line_date or "", + "move_number": move.name, + "counterpart": counterpart, + } + ) + return res + + def _prepare_draft_statement_lines(self, journal, date): + blines = self.env["account.bank.statement.line"].search( + [ + ("is_reconciled", "=", False), + ("journal_id", "=", journal.id), + ("date", "<=", date), + ] + ) + res = [] + for bline in blines: + res.append( + { + "date": bline.date, + "label": bline.name, + "ref": bline.ref or "", + "partner": bline.partner_id.display_name or "", + "amount": bline.amount, + "statement_ref": bline.statement_id.display_name or "", + } + ) + return res + + def generate_xlsx_report(self, workbook, data, wizard): + date = wizard.date + date_dt = fields.Date.from_string(date) + no_bank_journal = True + for o in wizard.journal_ids: + no_bank_journal = False + # Start styles + lang_code = self.env.user.lang + lang = False + if lang_code: + lang = self.env["res.lang"].search([("code", "=", lang_code)]) + if not lang: + lang = self.env["res.lang"].search([], limit=1) + xls_date_format = ( + lang.date_format.replace("%Y", "yyyy") + .replace("%m", "mm") + .replace("%d", "dd") + .replace("%y", "yy") + ) + + doc_title = workbook.add_format({"bold": True, "font_size": 16}) + col_title = workbook.add_format( + { + "bold": True, + "bg_color": "#e2e2fa", + "text_wrap": True, + "font_size": 10, + } + ) + title_right = workbook.add_format( + { + "bold": True, + "bg_color": "#e6e6fa", + "font_size": 10, + "align": "right", + } + ) + title_date = workbook.add_format( + { + "bg_color": "#f6f6ff", + "bold": True, + "num_format": xls_date_format, + "font_size": 10, + "align": "left", + } + ) + label_bold = workbook.add_format( + {"bold": True, "text_wrap": False, "font_size": 10} + ) + none = workbook.add_format( + {"bold": True, "font_size": 10, "align": "right"} + ) + regular = workbook.add_format({"font_size": 10}) + if "%" in xls_date_format: + # fallback + xls_date_format = "yyyy-mm-dd" + regular_date = workbook.add_format( + {"num_format": xls_date_format, "font_size": 10, "align": "left"} + ) + cur_format = "#,##0.00 %s" % ( + o.company_id.currency_id.symbol or o.company_id.currency_id.name + ) + # It seems that Excel replaces automatically the decimal + # and thousand separator by those of the language under which + # Excel runs + regular_currency = workbook.add_format( + {"num_format": cur_format, "font_size": 10} + ) + regular_currency_bg = workbook.add_format( + {"num_format": cur_format, "font_size": 10, "bg_color": "#f6f6ff"} + ) + # End styles + + sheet = workbook.add_worksheet(o.code or o.name) + sheet.write( + 0, + 0, + self.env._("%s - %s - Bank Reconciliation") + % (o.company_id.name, o.display_name), + doc_title, + ) + sheet.set_row(0, 26) + sheet.set_row(1, 25) + sheet.set_column(0, 0, 10) + sheet.set_column(1, 1, 40) + sheet.set_column(2, 2, 15) + sheet.set_column(3, 3, 25) + sheet.set_column(4, 4, 12) + sheet.set_column(5, 5, 18) + sheet.set_column(6, 6, 14) + sheet.set_column(7, 7, 14) + row = 2 + sheet.write(row, 0, self.env._("Date:"), title_right) + sheet.write(row, 1, date_dt, title_date) + # 1) Show accounting balance of bank account + row += 2 + bank_account = o.default_account_id + for col in range(3): + sheet.write(row, col, "", title_right) + sheet.write( + row, 3, self.env._("Balance %s:") % bank_account.code, title_right + ) + account_bal = self._compute_account_balance(o, date) + + sheet.write(row, 4, account_bal, regular_currency_bg) + bank_bal = account_bal + formula = "=E%d" % (row + 1) + # 2) Show account move line that are not linked to bank statement + # line or linked to a statement line after the date + row += 2 + sheet.write( + row, + 0, + self.env._( + "Journal items of account %s not linked to a bank " + "statement line:" + ) + % bank_account.code, + label_bold, + ) + mlines = self._prepare_move_lines(o, date) + if not mlines: + sheet.write(row, 4, self.env._("NONE"), none) + else: + row += 1 + col_labels = [ + self.env._("Date"), + self.env._("Label"), + self.env._("Ref."), + self.env._("Partner"), + self.env._("Amount"), + self.env._("Statement Line Date"), + self.env._("Move Number"), + self.env._("Counter-part"), + ] + col = 0 + for col_label in col_labels: + sheet.write(row, col, col_label, col_title) + col += 1 + m_start_row = m_end_row = row + 1 + for mline in mlines: + row += 1 + m_end_row = row + bank_bal -= mline["amount"] + sheet.write(row, 0, mline["date"], regular_date) + sheet.write(row, 1, mline["label"], regular) + sheet.write(row, 2, mline["ref"], regular) + sheet.write(row, 3, mline["partner"], regular) + sheet.write(row, 4, mline["amount"], regular_currency) + sheet.write(row, 5, mline["statement_line_date"], regular_date) + sheet.write(row, 6, mline["move_number"], regular) + sheet.write(row, 7, mline["counterpart"], regular) + + formula += "-SUM(E%d:E%d)" % (m_start_row + 1, m_end_row + 1) + + # 3) Add draft bank statement lines + row += 2 # skip 1 line + sheet.write(row, 0, self.env._("Draft bank statement lines:"), label_bold) + blines = self._prepare_draft_statement_lines(o, date) + if not blines: + sheet.write(row, 4, self.env._("NONE"), none) + else: + row += 1 + col_labels = [ + self.env._("Date"), + self.env._("Label"), + self.env._("Ref."), + self.env._("Partner"), + self.env._("Amount"), + self.env._("Statement Ref."), + "", + "", + ] + col = 0 + for col_label in col_labels: + sheet.write(row, col, col_label, col_title) + col += 1 + b_start_row = b_end_row = row + 1 + for bline in blines: + row += 1 + b_end_row = row + bank_bal += bline["amount"] + sheet.write(row, 0, bline["date"], regular_date) + sheet.write(row, 1, bline["label"], regular) + sheet.write(row, 2, bline["ref"], regular) + sheet.write(row, 3, bline["partner"], regular) + sheet.write(row, 4, bline["amount"], regular_currency) + sheet.write(row, 5, bline["statement_ref"], regular_currency) + formula += "+SUM(E%d:E%d)" % (b_start_row + 1, b_end_row + 1) + + # 4) Theoric bank account balance at the bank + row += 2 + for col in range(3): + sheet.write(row, col, "", title_right) + sheet.write( + row, + 3, + self.env._("Computed Bank Account Balance at the Bank:"), + title_right, + ) + sheet.write_formula(row, 4, formula, regular_currency_bg, bank_bal) + if no_bank_journal: + sheet = workbook.add_worksheet(self.env._("No Bank Journal")) + sheet.set_row(0, 30) + warn_msg = workbook.add_format( + {"bold": True, "font_size": 16, "font_color": "#003b6f"} + ) + sheet.write( + 0, + 0, + self.env._( + "No bank journal selected. " + "This report is only for bank journals." + ), + warn_msg, + ) diff --git a/account_bank_reconciliation_summary_xlsx/report/report.xml b/account_bank_reconciliation_summary_xlsx/report/report.xml new file mode 100644 index 00000000000..e0e10ac0362 --- /dev/null +++ b/account_bank_reconciliation_summary_xlsx/report/report.xml @@ -0,0 +1,16 @@ + + + + + Bank Reconciliation XLSX + bank.reconciliation.report.wizard + xlsx + bank.reconciliation.xlsx + bank.reconciliation.xlsx + 'bank_reconciliation-%s' % (object.date) + + diff --git a/account_bank_reconciliation_summary_xlsx/security/ir.model.access.csv b/account_bank_reconciliation_summary_xlsx/security/ir.model.access.csv new file mode 100644 index 00000000000..44248b8174d --- /dev/null +++ b/account_bank_reconciliation_summary_xlsx/security/ir.model.access.csv @@ -0,0 +1,2 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_bank_reconciliation_report_wizard,access_bank_reconciliation_report_wizard,model_bank_reconciliation_report_wizard,base.group_user,1,1,1,1 diff --git a/account_bank_reconciliation_summary_xlsx/static/description/icon.png b/account_bank_reconciliation_summary_xlsx/static/description/icon.png new file mode 100644 index 00000000000..3a0328b516c Binary files /dev/null and b/account_bank_reconciliation_summary_xlsx/static/description/icon.png differ diff --git a/account_bank_reconciliation_summary_xlsx/static/description/index.html b/account_bank_reconciliation_summary_xlsx/static/description/index.html new file mode 100644 index 00000000000..c1a10ddbe4b --- /dev/null +++ b/account_bank_reconciliation_summary_xlsx/static/description/index.html @@ -0,0 +1,460 @@ + + + + + +Bank Reconciliation Report + + + +
+

Bank Reconciliation Report

+ + +

Beta License: AGPL-3 OCA/account-financial-reporting Translate me on Weblate Try me on Runboat

+

This module adds a Bank Reconciliation Report in Odoo in XLSX format. +For each bank journal, the report displays:

+
    +
  1. The balance of the bank account in the accounting,
  2. +
  3. The list of journal items of the bank account not linked to any bank +statement lines,
  4. +
  5. The list of draft bank statement lines not linked to any journal +items,
  6. +
  7. The computed balance of the bank account at the bank.
  8. +
+

The last field (computed balance of the bank account at the bank) must +be compared to the real bank account balance at the bank. If there is a +difference, you need to find the error in the accounting. The field +Computed balance of the bank account at the bank is a formula, so you +can easily change its computation to try to find the difference with the +real bank account balance at the bank.

+

Table of contents

+ +
+

Configuration

+

This module doesn’t require any configuration.

+
+
+

Usage

+

You can launch the Bank Reconciliation Report wizard from:

+
    +
  • the menu Invoicing > Reporting > OCA accounting reports > Bank +Reconciliation,
  • +
  • the form view of a bank statement: click on the button Bank +Reconciliation Report,
  • +
  • the invoicing dashboard: on a bank journal, click on the options, then +select Bank Reconciliation.
  • +
+
+
+

Bug Tracker

+

Bugs are tracked on GitHub Issues. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us to smash it by providing a detailed and welcomed +feedback.

+

Do not contact contributors directly about support or help with technical issues.

+
+
+

Credits

+
+

Authors

+
    +
  • Akretion
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+ +Odoo Community Association + +

OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use.

+

This module is part of the OCA/account-financial-reporting project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + diff --git a/account_bank_reconciliation_summary_xlsx/tests/__init__.py b/account_bank_reconciliation_summary_xlsx/tests/__init__.py new file mode 100644 index 00000000000..57a613f8094 --- /dev/null +++ b/account_bank_reconciliation_summary_xlsx/tests/__init__.py @@ -0,0 +1,3 @@ +# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). + +from . import test_account_bank_reconciliation_summary_xlsx diff --git a/account_bank_reconciliation_summary_xlsx/tests/test_account_bank_reconciliation_summary_xlsx.py b/account_bank_reconciliation_summary_xlsx/tests/test_account_bank_reconciliation_summary_xlsx.py new file mode 100644 index 00000000000..98e3b8114dc --- /dev/null +++ b/account_bank_reconciliation_summary_xlsx/tests/test_account_bank_reconciliation_summary_xlsx.py @@ -0,0 +1,218 @@ +# Copyright 2017-2020 Akretion France (http://www.akretion.com/) +# @author: Alexis de Lattre +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from unittest.mock import MagicMock, patch + +from odoo import Command, fields +from odoo.tests.common import TransactionCase + + +class TestBankReconciliationXlsx(TransactionCase): + @classmethod + def setUpClass(cls): + super().setUpClass() + cls.env = cls.env(context=dict(cls.env.context, tracking_disable=True)) + + cls.company = cls.env.ref("base.main_company") + cls.bank_journal = cls.env["account.journal"].search( + [ + ("type", "=", "bank"), + ("company_id", "=", cls.company.id), + ], + limit=1, + ) + + if not cls.bank_journal: + cls.bank_journal = cls.env["account.journal"].create( + { + "name": "Test Bank", + "code": "BNKT", + "type": "bank", + "company_id": cls.company.id, + } + ) + + cls.report_model = cls.env["report.bank.reconciliation.xlsx"] + cls.wizard_model = cls.env["bank.reconciliation.report.wizard"] + cls.today = fields.Date.context_today(cls.env.user) + + def test_compute_account_balance_empty(self): + with patch.object(self.env.cr, "dictfetchall", return_value=[]): + balance = self.report_model._compute_account_balance( + self.bank_journal, self.today + ) + self.assertEqual(balance, 0.0) + + def test_compute_account_balance_none_sum(self): + with patch.object(self.env.cr, "dictfetchall", return_value=[{"sum": None}]): + balance = self.report_model._compute_account_balance( + self.bank_journal, self.today + ) + self.assertEqual(balance, 0.0) + + def test_compute_account_balance_with_value(self): + with patch.object(self.env.cr, "dictfetchall", return_value=[{"sum": 150.50}]): + balance = self.report_model._compute_account_balance( + self.bank_journal, self.today + ) + self.assertEqual(balance, 150.50) + + def test_prepare_move_lines_empty(self): + move_lines = self.report_model._prepare_move_lines( + self.bank_journal, self.today + ) + self.assertIsInstance(move_lines, list) + + def test_prepare_move_lines_structure(self): + move_lines = self.report_model._prepare_move_lines( + self.bank_journal, self.today + ) + if move_lines: + line = move_lines[0] + required = { + "date", + "label", + "ref", + "partner", + "amount", + "statement_line_date", + "move_number", + "counterpart", + } + self.assertTrue(required.issubset(line.keys())) + + def test_prepare_draft_statement_lines_empty(self): + draft_lines = self.report_model._prepare_draft_statement_lines( + self.bank_journal, self.today + ) + self.assertIsInstance(draft_lines, list) + + def test_prepare_draft_statement_lines_structure(self): + draft_lines = self.report_model._prepare_draft_statement_lines( + self.bank_journal, self.today + ) + if draft_lines: + line = draft_lines[0] + required = {"date", "label", "ref", "partner", "amount", "statement_ref"} + self.assertTrue(required.issubset(line.keys())) + + def test_wizard_creation(self): + wizard = self.wizard_model.create({"date": self.today}) + self.assertTrue(wizard.exists()) + self.assertEqual(wizard.date, self.today) + + def test_wizard_default_journal_ids(self): + wizard = self.wizard_model.create({"date": self.today}) + default_journals = wizard._default_journal_ids() + self.assertIsInstance(default_journals, type(self.env["account.journal"])) + + def test_wizard_xlsx_action(self): + wizard = self.wizard_model.create( + { + "date": self.today, + "journal_ids": [Command.set([self.bank_journal.id])], + } + ) + action = wizard.open_xlsx() + self.assertIsInstance(action, dict) + self.assertIn("type", action) + + def test_generate_xlsx_report_with_journals(self): + wizard = self.wizard_model.create( + { + "date": self.today, + "journal_ids": [Command.set([self.bank_journal.id])], + } + ) + workbook = MagicMock() + workbook.add_worksheet.return_value = MagicMock() + workbook.add_format.return_value = MagicMock() + self.report_model.generate_xlsx_report(workbook, {}, wizard) + workbook.add_worksheet.assert_called() + + def test_generate_xlsx_report_no_journals(self): + wizard = self.wizard_model.create( + { + "date": self.today, + "journal_ids": [Command.set([])], + } + ) + workbook = MagicMock() + workbook.add_worksheet.return_value = MagicMock() + workbook.add_format.return_value = MagicMock() + self.report_model.generate_xlsx_report(workbook, {}, wizard) + workbook.add_worksheet.assert_called() + + @patch( + "odoo.addons.account_bank_reconciliation_summary_xlsx.report." + "bank_reconciliation_xlsx.BankReconciliationXlsx._prepare_move_lines" + ) + def test_generate_xlsx_report_with_move_lines(self, mock_move_lines): + mock_move_lines.return_value = [ + { + "date": self.today, + "label": "Test Move", + "ref": "REF001", + "partner": "Test Partner", + "amount": 100.0, + "statement_line_date": "", + "move_number": "MOVE001", + "counterpart": "ACC001", + } + ] + wizard = self.wizard_model.create( + { + "date": self.today, + "journal_ids": [Command.set([self.bank_journal.id])], + } + ) + workbook = MagicMock() + workbook.add_worksheet.return_value = MagicMock() + workbook.add_format.return_value = MagicMock() + self.report_model.generate_xlsx_report(workbook, {}, wizard) + mock_move_lines.assert_called() + + @patch( + "odoo.addons.account_bank_reconciliation_summary_xlsx.report." + "bank_reconciliation_xlsx.BankReconciliationXlsx._prepare_draft_statement_lines" + ) + def test_generate_xlsx_report_with_statement_lines(self, mock_statement_lines): + mock_statement_lines.return_value = [ + { + "date": self.today, + "label": "Test Statement Line", + "ref": "REF002", + "partner": "Test Partner", + "amount": 50.0, + "statement_ref": "STMT001", + } + ] + wizard = self.wizard_model.create( + { + "date": self.today, + "journal_ids": [Command.set([self.bank_journal.id])], + } + ) + workbook = MagicMock() + workbook.add_worksheet.return_value = MagicMock() + workbook.add_format.return_value = MagicMock() + self.report_model.generate_xlsx_report(workbook, {}, wizard) + mock_statement_lines.assert_called() + + def test_language_handling_no_lang(self): + original_lang = self.env.user.lang + self.env.user.lang = False + try: + wizard = self.wizard_model.create( + { + "date": self.today, + "journal_ids": [Command.set([self.bank_journal.id])], + } + ) + workbook = MagicMock() + workbook.add_worksheet.return_value = MagicMock() + workbook.add_format.return_value = MagicMock() + self.report_model.generate_xlsx_report(workbook, {}, wizard) + finally: + self.env.user.lang = original_lang diff --git a/account_bank_reconciliation_summary_xlsx/views/account_bank_statement.xml b/account_bank_reconciliation_summary_xlsx/views/account_bank_statement.xml new file mode 100644 index 00000000000..14ed5581e69 --- /dev/null +++ b/account_bank_reconciliation_summary_xlsx/views/account_bank_statement.xml @@ -0,0 +1,28 @@ + + + + + bank_rec_summary.account.bank.statement.form + account.bank.statement + + +
+
+
+
+
diff --git a/account_bank_reconciliation_summary_xlsx/views/account_journal.xml b/account_bank_reconciliation_summary_xlsx/views/account_journal.xml new file mode 100644 index 00000000000..4c6636d952b --- /dev/null +++ b/account_bank_reconciliation_summary_xlsx/views/account_journal.xml @@ -0,0 +1,34 @@ + + + + + + bank_reconciliation_summarry.account_journal_dashboard + account.journal + + + +
+
+ + Report + +
+ +
+
+
+
+
diff --git a/account_bank_reconciliation_summary_xlsx/views/account_move_line.xml b/account_bank_reconciliation_summary_xlsx/views/account_move_line.xml new file mode 100644 index 00000000000..67380a998e7 --- /dev/null +++ b/account_bank_reconciliation_summary_xlsx/views/account_move_line.xml @@ -0,0 +1,18 @@ + + + + + bank_rec_summary.account_move_line_form + account.move.line + + + + + + + + diff --git a/account_bank_reconciliation_summary_xlsx/wizard/__init__.py b/account_bank_reconciliation_summary_xlsx/wizard/__init__.py new file mode 100644 index 00000000000..4ca3cb46cf4 --- /dev/null +++ b/account_bank_reconciliation_summary_xlsx/wizard/__init__.py @@ -0,0 +1 @@ +from . import bank_reconciliation_report_wizard diff --git a/account_bank_reconciliation_summary_xlsx/wizard/bank_reconciliation_report_wizard.py b/account_bank_reconciliation_summary_xlsx/wizard/bank_reconciliation_report_wizard.py new file mode 100644 index 00000000000..b469f8a552b --- /dev/null +++ b/account_bank_reconciliation_summary_xlsx/wizard/bank_reconciliation_report_wizard.py @@ -0,0 +1,37 @@ +# Copyright 2017-2020 Akretion France (http://www.akretion.com/) +# @author: Alexis de Lattre +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import api, fields, models + + +class BankReconciliationReportWizard(models.TransientModel): + _name = "bank.reconciliation.report.wizard" + _description = "Bank Reconciliation Report Wizard" + + @api.model + def _default_journal_ids(self): + journals = self.env["account.journal"].search( + [ + ("type", "=", "bank"), + ("bank_account_id", "!=", False), + ("company_id", "=", self.env.user.company_id.id), + ] + ) + return journals + + date = fields.Date(required=True, default=fields.Date.context_today) + journal_ids = fields.Many2many( + "account.journal", + string="Bank Journals", + domain=[("type", "=", "bank")], + required=True, + default=lambda self: self._default_journal_ids(), + ) + + def open_xlsx(self): + report = self.env.ref( + "account_bank_reconciliation_summary_xlsx." "bank_reconciliation_xlsx" + ) + action = report.report_action(self) + return action diff --git a/account_bank_reconciliation_summary_xlsx/wizard/bank_reconciliation_report_wizard_view.xml b/account_bank_reconciliation_summary_xlsx/wizard/bank_reconciliation_report_wizard_view.xml new file mode 100644 index 00000000000..caba845e593 --- /dev/null +++ b/account_bank_reconciliation_summary_xlsx/wizard/bank_reconciliation_report_wizard_view.xml @@ -0,0 +1,42 @@ + + + + + bank.reconciliation.report.wizard.form + bank.reconciliation.report.wizard + +
+ + + + +
+
+
+
+
+ + Bank Reconciliation + bank.reconciliation.report.wizard + form + new + + +