From 0967843644b211351f4b588a1d2d9c120db4c1b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roc=C3=ADo=20Vega?= Date: Wed, 27 Dec 2023 10:54:17 -0300 Subject: [PATCH] [IMP] account_statement_import_sheet_file: pre-commit execution --- .../README.rst | 65 ++++++++++--------- .../account_statement_import_sheet_parser.py | 4 +- .../pyproject.toml | 3 + .../readme/CONFIGURE.md | 6 ++ .../readme/CONFIGURE.rst | 4 -- .../readme/CONTRIBUTORS.md | 12 ++++ .../readme/CONTRIBUTORS.rst | 17 ----- .../{DESCRIPTION.rst => DESCRIPTION.md} | 4 +- .../readme/HISTORY.md | 7 ++ .../readme/HISTORY.rst | 7 -- .../readme/USAGE.md | 5 ++ .../readme/USAGE.rst | 4 -- .../static/description/index.html | 19 +++--- requirements.txt | 3 + 14 files changed, 85 insertions(+), 75 deletions(-) create mode 100644 account_statement_import_sheet_file/pyproject.toml create mode 100644 account_statement_import_sheet_file/readme/CONFIGURE.md delete mode 100644 account_statement_import_sheet_file/readme/CONFIGURE.rst create mode 100644 account_statement_import_sheet_file/readme/CONTRIBUTORS.md delete mode 100644 account_statement_import_sheet_file/readme/CONTRIBUTORS.rst rename account_statement_import_sheet_file/readme/{DESCRIPTION.rst => DESCRIPTION.md} (74%) create mode 100644 account_statement_import_sheet_file/readme/HISTORY.md delete mode 100644 account_statement_import_sheet_file/readme/HISTORY.rst create mode 100644 account_statement_import_sheet_file/readme/USAGE.md delete mode 100644 account_statement_import_sheet_file/readme/USAGE.rst create mode 100644 requirements.txt diff --git a/account_statement_import_sheet_file/README.rst b/account_statement_import_sheet_file/README.rst index b661fdcf..f40a936c 100644 --- a/account_statement_import_sheet_file/README.rst +++ b/account_statement_import_sheet_file/README.rst @@ -17,19 +17,19 @@ Bank Statement TXT/CSV/XLSX Import :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/16.0/account_statement_import_sheet_file + :target: https://github.com/OCA/bank-statement-import/tree/17.0/account_statement_import_sheet_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_sheet_file + :target: https://translation.odoo-community.org/projects/bank-statement-import-17-0/bank-statement-import-17-0-account_statement_import_sheet_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 allows you to import any TXT/CSV or XLSX file in Odoo as bank -statements. +This module allows you to import any TXT/CSV or XLSX file in Odoo as +bank statements. **Table of contents** @@ -41,27 +41,30 @@ Configuration To create TXT/CSV/XLSX statement sheet columns mapping: -#. Open *Invoicing > Configuration > Accounting > Statement Sheet Mappings* -#. Create mapping(s) according to your online banking software statement format +1. Open *Invoicing > Configuration > Accounting > Statement Sheet + Mappings* +2. Create mapping(s) according to your online banking software statement + format Usage ===== To use this module, you need to: -#. Get statement in TXT/CSV or XLSX from your online banking software -#. Go to Odoo and and import the statement file, selecting corresponding format +1. Get statement in TXT/CSV or XLSX from your online banking software +2. Go to Odoo and and import the statement file, selecting corresponding + format Changelog ========= 12.0.2.0.0 -~~~~~~~~~~ +---------- -* [BREAKING] New mapping, please review mappings after upgrade. -* [BREAKING] Different bank accounts have to be used per each currency. -* [ADD] Support for both Statement and Activity reports. -* [ADD] Separate fee and currency exchange parsing. +- [BREAKING] New mapping, please review mappings after upgrade. +- [BREAKING] Different bank accounts have to be used per each currency. +- [ADD] Support for both Statement and Activity reports. +- [ADD] Separate fee and currency exchange parsing. Bug Tracker =========== @@ -69,7 +72,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. @@ -77,34 +80,34 @@ Credits ======= Authors -~~~~~~~ +------- * ForgeFlow * CorporateHub Contributors -~~~~~~~~~~~~ +------------ -* Alexis de Lattre -* Sebastien BEAU -* Katherine Zaoral -* Tecnativa (https://www.tecnativa.com) +- Alexis de Lattre +- Sebastien BEAU +- Katherine Zaoral +- Tecnativa (https://www.tecnativa.com) - * Vicent Cubells - * Victor M.M. Torres - * Víctor Martínez + - Vicent Cubells + - Victor M.M. Torres + - Víctor Martínez -* ForgeFlow (https://www.forgeflow.com) +- ForgeFlow (https://www.forgeflow.com) - * Jordi Ballester Alomar - * Miquel Raïch Regué + - Jordi Ballester Alomar + - Miquel Raïch Regué -* `CorporateHub `__ +- `CorporateHub `__ - * Alexey Pelykh + - Alexey Pelykh Maintainers -~~~~~~~~~~~ +----------- This module is maintained by the OCA. @@ -124,6 +127,6 @@ Current `maintainer `__: |maintainer-alexey-pelykh| -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_sheet_file/models/account_statement_import_sheet_parser.py b/account_statement_import_sheet_file/models/account_statement_import_sheet_parser.py index e1910d83..7dc44934 100644 --- a/account_statement_import_sheet_file/models/account_statement_import_sheet_parser.py +++ b/account_statement_import_sheet_file/models/account_statement_import_sheet_parser.py @@ -22,7 +22,7 @@ try: import xlrd from xlrd.xldate import xldate_as_datetime -except (ImportError, IOError) as err: # pragma: no cover +except (OSError, ImportError) as err: # pragma: no cover _logger.error(err) try: @@ -454,7 +454,7 @@ class AccountStatementImportSheetParser(models.TransientModel): if transaction_id: note += _("Transaction ID: %s; ") % (transaction_id,) if note and notes: - note = "{}\n{}".format(notes, note.strip()) + note = f"{notes}\n{note.strip()}" elif note: note = note.strip() elif notes: diff --git a/account_statement_import_sheet_file/pyproject.toml b/account_statement_import_sheet_file/pyproject.toml new file mode 100644 index 00000000..4231d0cc --- /dev/null +++ b/account_statement_import_sheet_file/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/account_statement_import_sheet_file/readme/CONFIGURE.md b/account_statement_import_sheet_file/readme/CONFIGURE.md new file mode 100644 index 00000000..ab334267 --- /dev/null +++ b/account_statement_import_sheet_file/readme/CONFIGURE.md @@ -0,0 +1,6 @@ +To create TXT/CSV/XLSX statement sheet columns mapping: + +1. Open *Invoicing \> Configuration \> Accounting \> Statement Sheet + Mappings* +2. Create mapping(s) according to your online banking software + statement format diff --git a/account_statement_import_sheet_file/readme/CONFIGURE.rst b/account_statement_import_sheet_file/readme/CONFIGURE.rst deleted file mode 100644 index ca7a8b50..00000000 --- a/account_statement_import_sheet_file/readme/CONFIGURE.rst +++ /dev/null @@ -1,4 +0,0 @@ -To create TXT/CSV/XLSX statement sheet columns mapping: - -#. Open *Invoicing > Configuration > Accounting > Statement Sheet Mappings* -#. Create mapping(s) according to your online banking software statement format diff --git a/account_statement_import_sheet_file/readme/CONTRIBUTORS.md b/account_statement_import_sheet_file/readme/CONTRIBUTORS.md new file mode 100644 index 00000000..7de1ac83 --- /dev/null +++ b/account_statement_import_sheet_file/readme/CONTRIBUTORS.md @@ -0,0 +1,12 @@ +- Alexis de Lattre \<\> +- Sebastien BEAU \<\> +- Katherine Zaoral +- Tecnativa () + - Vicent Cubells + - Victor M.M. Torres + - Víctor Martínez +- ForgeFlow () + - Jordi Ballester Alomar \<\> + - Miquel Raïch Regué \<\> +- [CorporateHub](https://corporatehub.eu/) + - Alexey Pelykh \<\> diff --git a/account_statement_import_sheet_file/readme/CONTRIBUTORS.rst b/account_statement_import_sheet_file/readme/CONTRIBUTORS.rst deleted file mode 100644 index 36fc13e1..00000000 --- a/account_statement_import_sheet_file/readme/CONTRIBUTORS.rst +++ /dev/null @@ -1,17 +0,0 @@ -* Alexis de Lattre -* Sebastien BEAU -* Katherine Zaoral -* Tecnativa (https://www.tecnativa.com) - - * Vicent Cubells - * Victor M.M. Torres - * Víctor Martínez - -* ForgeFlow (https://www.forgeflow.com) - - * Jordi Ballester Alomar - * Miquel Raïch Regué - -* `CorporateHub `__ - - * Alexey Pelykh diff --git a/account_statement_import_sheet_file/readme/DESCRIPTION.rst b/account_statement_import_sheet_file/readme/DESCRIPTION.md similarity index 74% rename from account_statement_import_sheet_file/readme/DESCRIPTION.rst rename to account_statement_import_sheet_file/readme/DESCRIPTION.md index 1862d60f..683b1996 100644 --- a/account_statement_import_sheet_file/readme/DESCRIPTION.rst +++ b/account_statement_import_sheet_file/readme/DESCRIPTION.md @@ -1,2 +1,2 @@ -This module allows you to import any TXT/CSV or XLSX file in Odoo as bank -statements. +This module allows you to import any TXT/CSV or XLSX file in Odoo as +bank statements. diff --git a/account_statement_import_sheet_file/readme/HISTORY.md b/account_statement_import_sheet_file/readme/HISTORY.md new file mode 100644 index 00000000..65d771b0 --- /dev/null +++ b/account_statement_import_sheet_file/readme/HISTORY.md @@ -0,0 +1,7 @@ +## 12.0.2.0.0 + +- \[BREAKING\] New mapping, please review mappings after upgrade. +- \[BREAKING\] Different bank accounts have to be used per each + currency. +- \[ADD\] Support for both Statement and Activity reports. +- \[ADD\] Separate fee and currency exchange parsing. diff --git a/account_statement_import_sheet_file/readme/HISTORY.rst b/account_statement_import_sheet_file/readme/HISTORY.rst deleted file mode 100644 index fe7b1add..00000000 --- a/account_statement_import_sheet_file/readme/HISTORY.rst +++ /dev/null @@ -1,7 +0,0 @@ -12.0.2.0.0 -~~~~~~~~~~ - -* [BREAKING] New mapping, please review mappings after upgrade. -* [BREAKING] Different bank accounts have to be used per each currency. -* [ADD] Support for both Statement and Activity reports. -* [ADD] Separate fee and currency exchange parsing. diff --git a/account_statement_import_sheet_file/readme/USAGE.md b/account_statement_import_sheet_file/readme/USAGE.md new file mode 100644 index 00000000..78ce1ae7 --- /dev/null +++ b/account_statement_import_sheet_file/readme/USAGE.md @@ -0,0 +1,5 @@ +To use this module, you need to: + +1. Get statement in TXT/CSV or XLSX from your online banking software +2. Go to Odoo and and import the statement file, selecting + corresponding format diff --git a/account_statement_import_sheet_file/readme/USAGE.rst b/account_statement_import_sheet_file/readme/USAGE.rst deleted file mode 100644 index 1ed86b40..00000000 --- a/account_statement_import_sheet_file/readme/USAGE.rst +++ /dev/null @@ -1,4 +0,0 @@ -To use this module, you need to: - -#. Get statement in TXT/CSV or XLSX from your online banking software -#. Go to Odoo and and import the statement file, selecting corresponding format diff --git a/account_statement_import_sheet_file/static/description/index.html b/account_statement_import_sheet_file/static/description/index.html index b924b868..5e40bb66 100644 --- a/account_statement_import_sheet_file/static/description/index.html +++ b/account_statement_import_sheet_file/static/description/index.html @@ -368,9 +368,9 @@ ul.auto-toc { !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:52fd7c31d7753fa4ea912b113bfc30c98f54839022ff9071e6b4604483f28f30 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

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

-

This module allows you to import any TXT/CSV or XLSX file in Odoo as bank -statements.

+

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

+

This module allows you to import any TXT/CSV or XLSX file in Odoo as +bank statements.

Table of contents

    @@ -393,8 +393,10 @@ statements.

    Configuration

    To create TXT/CSV/XLSX statement sheet columns mapping:

      -
    1. Open Invoicing > Configuration > Accounting > Statement Sheet Mappings
    2. -
    3. Create mapping(s) according to your online banking software statement format
    4. +
    5. Open Invoicing > Configuration > Accounting > Statement Sheet +Mappings
    6. +
    7. Create mapping(s) according to your online banking software statement +format
@@ -402,7 +404,8 @@ statements.

To use this module, you need to:

  1. Get statement in TXT/CSV or XLSX from your online banking software
  2. -
  3. Go to Odoo and and import the statement file, selecting corresponding format
  4. +
  5. Go to Odoo and and import the statement file, selecting corresponding +format
@@ -422,7 +425,7 @@ statements.

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.

@@ -466,7 +469,7 @@ mission is to support the collaborative development of Odoo features and promote its widespread use.

Current maintainer:

alexey-pelykh

-

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/requirements.txt b/requirements.txt new file mode 100644 index 00000000..5a2df807 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,3 @@ +# generated from manifests external_dependencies +chardet +xlrd