From ed4cf01d11fd0e623bd73d2705c557693bb02e8a Mon Sep 17 00:00:00 2001 From: manu Date: Wed, 8 May 2024 13:33:13 +0200 Subject: [PATCH] [IMP] account_statement_import_file: black, isort, prettier --- account_statement_import_file/README.rst | 61 +++++++++++++------ account_statement_import_file/pyproject.toml | 3 + .../readme/CONTRIBUTORS.md | 3 + .../readme/CONTRIBUTORS.rst | 3 - .../readme/DESCRIPTION.md | 22 +++++++ .../readme/DESCRIPTION.rst | 9 --- account_statement_import_file/readme/USAGE.md | 15 +++++ .../readme/USAGE.rst | 5 -- .../static/description/index.html | 42 ++++++++++--- 9 files changed, 117 insertions(+), 46 deletions(-) create mode 100644 account_statement_import_file/pyproject.toml create mode 100644 account_statement_import_file/readme/CONTRIBUTORS.md delete mode 100644 account_statement_import_file/readme/CONTRIBUTORS.rst create mode 100644 account_statement_import_file/readme/DESCRIPTION.md delete mode 100644 account_statement_import_file/readme/DESCRIPTION.rst create mode 100644 account_statement_import_file/readme/USAGE.md delete mode 100644 account_statement_import_file/readme/USAGE.rst diff --git a/account_statement_import_file/README.rst b/account_statement_import_file/README.rst index 6f886904..67f17528 100644 --- a/account_statement_import_file/README.rst +++ b/account_statement_import_file/README.rst @@ -17,26 +17,39 @@ Import Statement Files :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html :alt: License: LGPL-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/16.0/account_statement_import_file + :target: https://github.com/OCA/bank-statement-import/tree/17.0/account_statement_import_file :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-16-0/bank-statement-import-16-0-account_statement_import_file + :target: https://translation.odoo-community.org/projects/bank-statement-import-17-0/bank-statement-import-17-0-account_statement_import_file :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/bank-statement-import&target_branch=16.0 + :target: https://runboat.odoo-community.org/builds?repo=OCA/bank-statement-import&target_branch=17.0 :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| -This module is the successor of the module **account_bank_statement_import** that was part of Odoo Community until Odoo v13 and was moved to Odoo Enterprise for Odoo v14 (cf `this commit `_). We decided to change its name and the name of the wizard object it provides in order to avoid a conflict with the Enterprise module. +This module is the successor of the module +**account_bank_statement_import** that was part of Odoo Community until +Odoo v13 and was moved to Odoo Enterprise for Odoo v14 (cf `this +commit `__). +We decided to change its name and the name of the wizard object it +provides in order to avoid a conflict with the Enterprise module. This module has several additionnal feature: -* support multi-account bank statement files, -* attach the file to the bank statement (to facilitate the diagnostic in case of problem), -* improved error messages. +- support multi-account bank statement files, +- attach the file to the bank statement (to facilitate the diagnostic + in case of problem), +- improved error messages. -This module only provides the technical framework for the import of statement files. You must also install the format-specific modules to add support for the statement file formats that your banks/provide use. For example, the OCA module **account_statement_import_ofx** will add support for the OFX (Open Financial Exchange) file format. You will find those modules in the OCA project `bank-statement-import `_ or, for the country-specific formats, in the OCA localization projects. +This module only provides the technical framework for the import of +statement files. You must also install the format-specific modules to +add support for the statement file formats that your banks/provide use. +For example, the OCA module **account_statement_import_ofx** will add +support for the OFX (Open Financial Exchange) file format. You will find +those modules in the OCA project +`bank-statement-import `__ +or, for the country-specific formats, in the OCA localization projects. **Table of contents** @@ -46,11 +59,21 @@ This module only provides the technical framework for the import of statement fi Usage ===== -To import a statement file, go to the Invoicing dashboard: on a bank journal, you will see a button to import a statement. When you click on that button, a wizard will start and it will show the list of the supported file formats. Select the statement file that you want to import and click on the **Import** button. Odoo will create a new bank statement (or several if your statement file is a multi-account file). +To import a statement file, go to the Invoicing dashboard: on a bank +journal, you will see a button to import a statement. When you click on +that button, a wizard will start and it will show the list of the +supported file formats. Select the statement file that you want to +import and click on the **Import** button. Odoo will create a new bank +statement (or several if your statement file is a multi-account file). -If your statement file contains transactions that were already imported in Odoo, they will not be created a second time. +If your statement file contains transactions that were already imported +in Odoo, they will not be created a second time. -If the statement file contains information about the bank account number of the counter-part for some transactions (only a few statement file formats support that, in some countries) and that these bank account numbers exists on partners in Odoo, the partners will be set on the related statement lines. +If the statement file contains information about the bank account number +of the counter-part for some transactions (only a few statement file +formats support that, in some countries) and that these bank account +numbers exists on partners in Odoo, the partners will be set on the +related statement lines. Bug Tracker =========== @@ -58,7 +81,7 @@ 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 `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -66,20 +89,20 @@ Credits ======= Authors -~~~~~~~ +------- * Odoo SA * Akretion Contributors -~~~~~~~~~~~~ +------------ -* Odoo S.A. -* Alexis de Lattre -* Tecnativa - Pedro M. Baeza +- Odoo S.A. +- Alexis de Lattre +- Tecnativa - Pedro M. Baeza Maintainers -~~~~~~~~~~~ +----------- This module is maintained by the OCA. @@ -99,6 +122,6 @@ Current `maintainer `__: |maintainer-alexis-via| -This module is part of the `OCA/bank-statement-import `_ project on GitHub. +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/pyproject.toml b/account_statement_import_file/pyproject.toml new file mode 100644 index 00000000..4231d0cc --- /dev/null +++ b/account_statement_import_file/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/account_statement_import_file/readme/CONTRIBUTORS.md b/account_statement_import_file/readme/CONTRIBUTORS.md new file mode 100644 index 00000000..653f9dc7 --- /dev/null +++ b/account_statement_import_file/readme/CONTRIBUTORS.md @@ -0,0 +1,3 @@ +- Odoo S.A. +- Alexis de Lattre \<\> +- Tecnativa - Pedro M. Baeza diff --git a/account_statement_import_file/readme/CONTRIBUTORS.rst b/account_statement_import_file/readme/CONTRIBUTORS.rst deleted file mode 100644 index 54f339ba..00000000 --- a/account_statement_import_file/readme/CONTRIBUTORS.rst +++ /dev/null @@ -1,3 +0,0 @@ -* Odoo S.A. -* Alexis de Lattre -* Tecnativa - Pedro M. Baeza diff --git a/account_statement_import_file/readme/DESCRIPTION.md b/account_statement_import_file/readme/DESCRIPTION.md new file mode 100644 index 00000000..66f0711b --- /dev/null +++ b/account_statement_import_file/readme/DESCRIPTION.md @@ -0,0 +1,22 @@ +This module is the successor of the module +**account_bank_statement_import** that was part of Odoo Community until +Odoo v13 and was moved to Odoo Enterprise for Odoo v14 (cf [this +commit](https://github.com/odoo/odoo/commit/9ba8734f15e1a292ca27b1a026e8366a91b2a8c9)). +We decided to change its name and the name of the wizard object it +provides in order to avoid a conflict with the Enterprise module. + +This module has several additionnal feature: + +- support multi-account bank statement files, +- attach the file to the bank statement (to facilitate the diagnostic in + case of problem), +- improved error messages. + +This module only provides the technical framework for the import of +statement files. You must also install the format-specific modules to +add support for the statement file formats that your banks/provide use. +For example, the OCA module **account_statement_import_ofx** will add +support for the OFX (Open Financial Exchange) file format. You will find +those modules in the OCA project +[bank-statement-import](https://github.com/OCA/bank-statement-import) +or, for the country-specific formats, in the OCA localization projects. diff --git a/account_statement_import_file/readme/DESCRIPTION.rst b/account_statement_import_file/readme/DESCRIPTION.rst deleted file mode 100644 index 7a5804d0..00000000 --- a/account_statement_import_file/readme/DESCRIPTION.rst +++ /dev/null @@ -1,9 +0,0 @@ -This module is the successor of the module **account_bank_statement_import** that was part of Odoo Community until Odoo v13 and was moved to Odoo Enterprise for Odoo v14 (cf `this commit `_). We decided to change its name and the name of the wizard object it provides in order to avoid a conflict with the Enterprise module. - -This module has several additionnal feature: - -* support multi-account bank statement files, -* attach the file to the bank statement (to facilitate the diagnostic in case of problem), -* improved error messages. - -This module only provides the technical framework for the import of statement files. You must also install the format-specific modules to add support for the statement file formats that your banks/provide use. For example, the OCA module **account_statement_import_ofx** will add support for the OFX (Open Financial Exchange) file format. You will find those modules in the OCA project `bank-statement-import `_ or, for the country-specific formats, in the OCA localization projects. diff --git a/account_statement_import_file/readme/USAGE.md b/account_statement_import_file/readme/USAGE.md new file mode 100644 index 00000000..0d3e5b17 --- /dev/null +++ b/account_statement_import_file/readme/USAGE.md @@ -0,0 +1,15 @@ +To import a statement file, go to the Invoicing dashboard: on a bank +journal, you will see a button to import a statement. When you click on +that button, a wizard will start and it will show the list of the +supported file formats. Select the statement file that you want to +import and click on the **Import** button. Odoo will create a new bank +statement (or several if your statement file is a multi-account file). + +If your statement file contains transactions that were already imported +in Odoo, they will not be created a second time. + +If the statement file contains information about the bank account number +of the counter-part for some transactions (only a few statement file +formats support that, in some countries) and that these bank account +numbers exists on partners in Odoo, the partners will be set on the +related statement lines. diff --git a/account_statement_import_file/readme/USAGE.rst b/account_statement_import_file/readme/USAGE.rst deleted file mode 100644 index 2b9b09c2..00000000 --- a/account_statement_import_file/readme/USAGE.rst +++ /dev/null @@ -1,5 +0,0 @@ -To import a statement file, go to the Invoicing dashboard: on a bank journal, you will see a button to import a statement. When you click on that button, a wizard will start and it will show the list of the supported file formats. Select the statement file that you want to import and click on the **Import** button. Odoo will create a new bank statement (or several if your statement file is a multi-account file). - -If your statement file contains transactions that were already imported in Odoo, they will not be created a second time. - -If the statement file contains information about the bank account number of the counter-part for some transactions (only a few statement file formats support that, in some countries) and that these bank account numbers exists on partners in Odoo, the partners will be set on the related statement lines. diff --git a/account_statement_import_file/static/description/index.html b/account_statement_import_file/static/description/index.html index efd3f47e..1e7a31b2 100644 --- a/account_statement_import_file/static/description/index.html +++ b/account_statement_import_file/static/description/index.html @@ -1,4 +1,3 @@ - @@ -369,15 +368,28 @@ ul.auto-toc { !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:05b01603d319c8d76bf854f4c741c8439547285d1db7cfddfdd65d8c75a06e54 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Mature License: LGPL-3 OCA/bank-statement-import Translate me on Weblate Try me on Runboat

-

This module is the successor of the module account_bank_statement_import that was part of Odoo Community until Odoo v13 and was moved to Odoo Enterprise for Odoo v14 (cf this commit). We decided to change its name and the name of the wizard object it provides in order to avoid a conflict with the Enterprise module.

+

Mature License: LGPL-3 OCA/bank-statement-import Translate me on Weblate Try me on Runboat

+

This module is the successor of the module +account_bank_statement_import that was part of Odoo Community until +Odoo v13 and was moved to Odoo Enterprise for Odoo v14 (cf this +commit). +We decided to change its name and the name of the wizard object it +provides in order to avoid a conflict with the Enterprise module.

This module has several additionnal feature:

  • support multi-account bank statement files,
  • -
  • attach the file to the bank statement (to facilitate the diagnostic in case of problem),
  • +
  • attach the file to the bank statement (to facilitate the diagnostic +in case of problem),
  • improved error messages.
-

This module only provides the technical framework for the import of statement files. You must also install the format-specific modules to add support for the statement file formats that your banks/provide use. For example, the OCA module account_statement_import_ofx will add support for the OFX (Open Financial Exchange) file format. You will find those modules in the OCA project bank-statement-import or, for the country-specific formats, in the OCA localization projects.

+

This module only provides the technical framework for the import of +statement files. You must also install the format-specific modules to +add support for the statement file formats that your banks/provide use. +For example, the OCA module account_statement_import_ofx will add +support for the OFX (Open Financial Exchange) file format. You will find +those modules in the OCA project +bank-statement-import +or, for the country-specific formats, in the OCA localization projects.

Table of contents

    @@ -393,16 +405,26 @@ ul.auto-toc {

Usage

-

To import a statement file, go to the Invoicing dashboard: on a bank journal, you will see a button to import a statement. When you click on that button, a wizard will start and it will show the list of the supported file formats. Select the statement file that you want to import and click on the Import button. Odoo will create a new bank statement (or several if your statement file is a multi-account file).

-

If your statement file contains transactions that were already imported in Odoo, they will not be created a second time.

-

If the statement file contains information about the bank account number of the counter-part for some transactions (only a few statement file formats support that, in some countries) and that these bank account numbers exists on partners in Odoo, the partners will be set on the related statement lines.

+

To import a statement file, go to the Invoicing dashboard: on a bank +journal, you will see a button to import a statement. When you click on +that button, a wizard will start and it will show the list of the +supported file formats. Select the statement file that you want to +import and click on the Import button. Odoo will create a new bank +statement (or several if your statement file is a multi-account file).

+

If your statement file contains transactions that were already imported +in Odoo, they will not be created a second time.

+

If the statement file contains information about the bank account number +of the counter-part for some transactions (only a few statement file +formats support that, in some countries) and that these bank account +numbers exists on partners in Odoo, the partners will be set on the +related statement lines.

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.

+feedback.

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

@@ -431,7 +453,7 @@ 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.

+

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.