diff --git a/account_statement_import_file_reconcile_oca/README.rst b/account_statement_import_file_reconcile_oca/README.rst new file mode 100644 index 00000000..97884cba --- /dev/null +++ b/account_statement_import_file_reconcile_oca/README.rst @@ -0,0 +1,94 @@ +====================================================== +Import Statement Files and Go Direct to Reconciliation +====================================================== + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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%2Fbank--statement--import-lightgray.png?logo=github + :target: https://github.com/OCA/bank-statement-import/tree/14.0/account_statement_import_file_reconciliation_widget + :alt: OCA/bank-statement-import +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/bank-statement-import-14-0/bank-statement-import-14-0-account_statement_import_file_reconciliation_widget + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png + :target: https://runbot.odoo-community.org/runbot/174/14.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module is a glue module between 2 modules: + +* **account_statement_import** from the Github project *OCA/bank-statement-import* +* **account_reconciliation_widget** from the Github project `OCA/account-reconcile `_ + +This module adds a button **Import and Start to Reconcile** on the bank statement file import wizard. When you click on this button, Odoo will import the bank statement file and jump directly to the special reconciliation interface. + +.. figure:: https://raw.githubusercontent.com/OCA/bank-statement-import/14.0/account_statement_import_file_reconciliation_widget/static/description/bank_statement_import_start_reconcile.png + :alt: Bank statement import wizard screenshot + +**Table of contents** + +.. contents:: + :local: + +Installation +============ + +This module will be installed automatically by Odoo if the modules **account_statement_import** and **account_reconciliation_widget** are installed. + +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 smashing 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 + +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. + +.. |maintainer-alexis-via| image:: https://github.com/alexis-via.png?size=40px + :target: https://github.com/alexis-via + :alt: alexis-via + +Current `maintainer `__: + +|maintainer-alexis-via| + +This module is part of the `OCA/bank-statement-import `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/account_statement_import_file_reconcile_oca/__init__.py b/account_statement_import_file_reconcile_oca/__init__.py new file mode 100644 index 00000000..5cb1c491 --- /dev/null +++ b/account_statement_import_file_reconcile_oca/__init__.py @@ -0,0 +1 @@ +from . import wizards diff --git a/account_statement_import_file_reconcile_oca/__manifest__.py b/account_statement_import_file_reconcile_oca/__manifest__.py new file mode 100644 index 00000000..76794b0b --- /dev/null +++ b/account_statement_import_file_reconcile_oca/__manifest__.py @@ -0,0 +1,19 @@ +# Copyright 2022 Akretion France (http://www.akretion.com/) +# @author: Alexis de Lattre +# Licence AGPL-3.0 or later (https://www.gnu.org/licenses/agpl-3.0). + +{ + "name": "Import Statement Files and Go Direct to Reconciliation", + "category": "Accounting", + "version": "16.0.1.0.0", + "license": "AGPL-3", + "depends": ["account_statement_import_file", "account_reconcile_oca"], + "author": "Akretion, Odoo Community Association (OCA)", + "maintainers": ["alexis-via"], + "website": "https://github.com/OCA/bank-statement-import", + "data": [ + "wizards/account_statement_import_view.xml", + ], + "installable": True, + "auto_install": True, +} diff --git a/account_statement_import_file_reconcile_oca/i18n/account_statement_import_file_reconciliation_widget.pot b/account_statement_import_file_reconcile_oca/i18n/account_statement_import_file_reconciliation_widget.pot new file mode 100644 index 00000000..90904404 --- /dev/null +++ b/account_statement_import_file_reconcile_oca/i18n/account_statement_import_file_reconciliation_widget.pot @@ -0,0 +1,39 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_statement_import_file_reconciliation_widget +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.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_statement_import_file_reconciliation_widget +#: model:ir.model.fields,field_description:account_statement_import_file_reconciliation_widget.field_account_statement_import__display_name +msgid "Display Name" +msgstr "" + +#. module: account_statement_import_file_reconciliation_widget +#: model:ir.model.fields,field_description:account_statement_import_file_reconciliation_widget.field_account_statement_import__id +msgid "ID" +msgstr "" + +#. module: account_statement_import_file_reconciliation_widget +#: model:ir.model,name:account_statement_import_file_reconciliation_widget.model_account_statement_import +msgid "Import Bank Statement Files" +msgstr "" + +#. module: account_statement_import_file_reconciliation_widget +#: model_terms:ir.ui.view,arch_db:account_statement_import_file_reconciliation_widget.account_statement_import_form +msgid "Import and Start to Reconcile" +msgstr "" + +#. module: account_statement_import_file_reconciliation_widget +#: model:ir.model.fields,field_description:account_statement_import_file_reconciliation_widget.field_account_statement_import____last_update +msgid "Last Modified on" +msgstr "" diff --git a/account_statement_import_file_reconcile_oca/i18n/fr.po b/account_statement_import_file_reconcile_oca/i18n/fr.po new file mode 100644 index 00000000..4819c884 --- /dev/null +++ b/account_statement_import_file_reconcile_oca/i18n/fr.po @@ -0,0 +1,42 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_statement_import_file_reconciliation_widget +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2022-10-03 10:35+0000\n" +"Last-Translator: Yves Le Doeuff \n" +"Language-Team: none\n" +"Language: fr\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_statement_import_file_reconciliation_widget +#: model:ir.model.fields,field_description:account_statement_import_file_reconciliation_widget.field_account_statement_import__display_name +msgid "Display Name" +msgstr "" + +#. module: account_statement_import_file_reconciliation_widget +#: model:ir.model.fields,field_description:account_statement_import_file_reconciliation_widget.field_account_statement_import__id +msgid "ID" +msgstr "" + +#. module: account_statement_import_file_reconciliation_widget +#: model:ir.model,name:account_statement_import_file_reconciliation_widget.model_account_statement_import +msgid "Import Bank Statement Files" +msgstr "Importer des relevés bancaires" + +#. module: account_statement_import_file_reconciliation_widget +#: model_terms:ir.ui.view,arch_db:account_statement_import_file_reconciliation_widget.account_statement_import_form +msgid "Import and Start to Reconcile" +msgstr "Importer et commencer le rapprochement" + +#. module: account_statement_import_file_reconciliation_widget +#: model:ir.model.fields,field_description:account_statement_import_file_reconciliation_widget.field_account_statement_import____last_update +msgid "Last Modified on" +msgstr "Dernière modification le" diff --git a/account_statement_import_file_reconcile_oca/readme/CONTRIBUTORS.rst b/account_statement_import_file_reconcile_oca/readme/CONTRIBUTORS.rst new file mode 100644 index 00000000..ff65d68c --- /dev/null +++ b/account_statement_import_file_reconcile_oca/readme/CONTRIBUTORS.rst @@ -0,0 +1 @@ +* Alexis de Lattre diff --git a/account_statement_import_file_reconcile_oca/readme/DESCRIPTION.rst b/account_statement_import_file_reconcile_oca/readme/DESCRIPTION.rst new file mode 100644 index 00000000..8ec9c83a --- /dev/null +++ b/account_statement_import_file_reconcile_oca/readme/DESCRIPTION.rst @@ -0,0 +1,9 @@ +This module is a glue module between 2 modules: + +* **account_statement_import_file** from the Github project *OCA/bank-statement-import* +* **account_reconcile_oca** from the Github project `OCA/account-reconcile `_ + +This module adds a button **Import and Start to Reconcile** on the bank statement file import wizard. When you click on this button, Odoo will import the bank statement file and jump directly to the reconciliation interface. + +.. figure:: ../static/description/bank_statement_import_start_reconcile.png + :alt: Bank statement import wizard screenshot diff --git a/account_statement_import_file_reconcile_oca/readme/INSTALL.rst b/account_statement_import_file_reconcile_oca/readme/INSTALL.rst new file mode 100644 index 00000000..e65c8730 --- /dev/null +++ b/account_statement_import_file_reconcile_oca/readme/INSTALL.rst @@ -0,0 +1 @@ +This module will be installed automatically by Odoo if the modules **account_statement_import_file** and **account_reconcile_oca** are installed. diff --git a/account_statement_import_file_reconcile_oca/static/description/bank_statement_import_start_reconcile.png b/account_statement_import_file_reconcile_oca/static/description/bank_statement_import_start_reconcile.png new file mode 100644 index 00000000..1f8ea2cd Binary files /dev/null and b/account_statement_import_file_reconcile_oca/static/description/bank_statement_import_start_reconcile.png differ diff --git a/account_statement_import_file_reconcile_oca/static/description/icon.png b/account_statement_import_file_reconcile_oca/static/description/icon.png new file mode 100644 index 00000000..3a0328b5 Binary files /dev/null and b/account_statement_import_file_reconcile_oca/static/description/icon.png differ diff --git a/account_statement_import_file_reconcile_oca/static/description/index.html b/account_statement_import_file_reconcile_oca/static/description/index.html new file mode 100644 index 00000000..509931ac --- /dev/null +++ b/account_statement_import_file_reconcile_oca/static/description/index.html @@ -0,0 +1,434 @@ + + + + + + +Import Statement Files and Go Direct to Reconciliation + + + +
+

Import Statement Files and Go Direct to Reconciliation

+ + +

Beta License: AGPL-3 OCA/bank-statement-import Translate me on Weblate Try me on Runbot

+

This module is a glue module between 2 modules:

+
    +
  • account_statement_import from the Github project OCA/bank-statement-import
  • +
  • account_reconciliation_widget from the Github project OCA/account-reconcile
  • +
+

This module adds a button Import and Start to Reconcile on the bank statement file import wizard. When you click on this button, Odoo will import the bank statement file and jump directly to the special reconciliation interface.

+
+Bank statement import wizard screenshot +
+

Table of contents

+ +
+

Installation

+

This module will be installed automatically by Odoo if the modules account_statement_import and account_reconciliation_widget are installed.

+
+
+

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 smashing 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.

+

Current maintainer:

+

alexis-via

+

This module is part of the OCA/bank-statement-import project on GitHub.

+

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

+
+
+
+ + diff --git a/account_statement_import_file_reconcile_oca/wizards/__init__.py b/account_statement_import_file_reconcile_oca/wizards/__init__.py new file mode 100644 index 00000000..ae69bca2 --- /dev/null +++ b/account_statement_import_file_reconcile_oca/wizards/__init__.py @@ -0,0 +1 @@ +from . import account_statement_import diff --git a/account_statement_import_file_reconcile_oca/wizards/account_statement_import.py b/account_statement_import_file_reconcile_oca/wizards/account_statement_import.py new file mode 100644 index 00000000..8a91d71e --- /dev/null +++ b/account_statement_import_file_reconcile_oca/wizards/account_statement_import.py @@ -0,0 +1,37 @@ +# Copyright 2022 Akretion France (http://www.akretion.com/) +# @author: Alexis de Lattre +# Licence AGPL-3.0 or later (https://www.gnu.org/licenses/agpl-3.0). + +from odoo import models + + +class AccountStatementImport(models.TransientModel): + _inherit = "account.statement.import" + + def import_file_and_reconcile_button(self): + """Process the file chosen in the wizard, create bank statement(s) + and jump directly to the reconciliation widget""" + result = self._import_file() + self.env["account.bank.statement"].browse(result["statement_ids"]) + action = self.env["ir.actions.actions"]._for_xml_id( + "account_reconcile_oca.action_bank_statement_line_reconcile" + ) + action["context"] = { + "default_journal_id": self._context.get("journal_id"), + "active_id": self._context.get("journal_id"), + "search_default_not_reconciled": True, + "view_ref": "account_reconcile_oca.bank_statement_line_form_reconcile_view", + } + if result["notifications"]: + action_with_notif = { + "type": "ir.actions.client", + "tag": "display_notification", + "params": { + "type": "warning", + "sticky": True, + "message": "\n\n".join(result["notifications"]), + "next": action, + }, + } + return action_with_notif + return action diff --git a/account_statement_import_file_reconcile_oca/wizards/account_statement_import_view.xml b/account_statement_import_file_reconcile_oca/wizards/account_statement_import_view.xml new file mode 100644 index 00000000..8d5d15af --- /dev/null +++ b/account_statement_import_file_reconcile_oca/wizards/account_statement_import_view.xml @@ -0,0 +1,27 @@ + + + + + + account.statement.import + + + + + + +