mirror of
https://github.com/OCA/bank-statement-import.git
synced 2025-01-20 12:37:43 +02:00
[IMP] account_statement_import_sheet_file: pre-commit execution
This commit is contained in:
@@ -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 <https://github.com/OCA/bank-statement-import/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 <https://github.com/OCA/bank-statement-import/issues/new?body=module:%20account_statement_import_sheet_file%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
||||
`feedback <https://github.com/OCA/bank-statement-import/issues/new?body=module:%20account_statement_import_sheet_file%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
||||
|
||||
Do not contact contributors directly about support or help with technical issues.
|
||||
|
||||
@@ -77,34 +80,34 @@ Credits
|
||||
=======
|
||||
|
||||
Authors
|
||||
~~~~~~~
|
||||
-------
|
||||
|
||||
* ForgeFlow
|
||||
* CorporateHub
|
||||
|
||||
Contributors
|
||||
~~~~~~~~~~~~
|
||||
------------
|
||||
|
||||
* Alexis de Lattre <alexis.delattre@akretion.com>
|
||||
* Sebastien BEAU <sebastien.beau@akretion.com>
|
||||
* Katherine Zaoral
|
||||
* Tecnativa (https://www.tecnativa.com)
|
||||
- Alexis de Lattre <alexis.delattre@akretion.com>
|
||||
- Sebastien BEAU <sebastien.beau@akretion.com>
|
||||
- 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 <jordi.ballester@forgeflow.com>
|
||||
* Miquel Raïch Regué <miquel.raich@forgeflow.com>
|
||||
- Jordi Ballester Alomar <jordi.ballester@forgeflow.com>
|
||||
- Miquel Raïch Regué <miquel.raich@forgeflow.com>
|
||||
|
||||
* `CorporateHub <https://corporatehub.eu/>`__
|
||||
- `CorporateHub <https://corporatehub.eu/>`__
|
||||
|
||||
* Alexey Pelykh <alexey.pelykh@corphub.eu>
|
||||
- Alexey Pelykh <alexey.pelykh@corphub.eu>
|
||||
|
||||
Maintainers
|
||||
~~~~~~~~~~~
|
||||
-----------
|
||||
|
||||
This module is maintained by the OCA.
|
||||
|
||||
@@ -124,6 +127,6 @@ Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
|
||||
|
||||
|maintainer-alexey-pelykh|
|
||||
|
||||
This module is part of the `OCA/bank-statement-import <https://github.com/OCA/bank-statement-import/tree/16.0/account_statement_import_sheet_file>`_ project on GitHub.
|
||||
This module is part of the `OCA/bank-statement-import <https://github.com/OCA/bank-statement-import/tree/17.0/account_statement_import_sheet_file>`_ project on GitHub.
|
||||
|
||||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
|
||||
|
||||
@@ -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:
|
||||
|
||||
3
account_statement_import_sheet_file/pyproject.toml
Normal file
3
account_statement_import_sheet_file/pyproject.toml
Normal file
@@ -0,0 +1,3 @@
|
||||
[build-system]
|
||||
requires = ["whool"]
|
||||
build-backend = "whool.buildapi"
|
||||
6
account_statement_import_sheet_file/readme/CONFIGURE.md
Normal file
6
account_statement_import_sheet_file/readme/CONFIGURE.md
Normal file
@@ -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
|
||||
@@ -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
|
||||
12
account_statement_import_sheet_file/readme/CONTRIBUTORS.md
Normal file
12
account_statement_import_sheet_file/readme/CONTRIBUTORS.md
Normal file
@@ -0,0 +1,12 @@
|
||||
- Alexis de Lattre \<<alexis.delattre@akretion.com>\>
|
||||
- Sebastien BEAU \<<sebastien.beau@akretion.com>\>
|
||||
- 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 \<<jordi.ballester@forgeflow.com>\>
|
||||
- Miquel Raïch Regué \<<miquel.raich@forgeflow.com>\>
|
||||
- [CorporateHub](https://corporatehub.eu/)
|
||||
- Alexey Pelykh \<<alexey.pelykh@corphub.eu>\>
|
||||
@@ -1,17 +0,0 @@
|
||||
* Alexis de Lattre <alexis.delattre@akretion.com>
|
||||
* Sebastien BEAU <sebastien.beau@akretion.com>
|
||||
* 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 <jordi.ballester@forgeflow.com>
|
||||
* Miquel Raïch Regué <miquel.raich@forgeflow.com>
|
||||
|
||||
* `CorporateHub <https://corporatehub.eu/>`__
|
||||
|
||||
* Alexey Pelykh <alexey.pelykh@corphub.eu>
|
||||
@@ -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.
|
||||
7
account_statement_import_sheet_file/readme/HISTORY.md
Normal file
7
account_statement_import_sheet_file/readme/HISTORY.md
Normal file
@@ -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.
|
||||
@@ -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.
|
||||
5
account_statement_import_sheet_file/readme/USAGE.md
Normal file
5
account_statement_import_sheet_file/readme/USAGE.md
Normal file
@@ -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
|
||||
@@ -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
|
||||
@@ -368,9 +368,9 @@ ul.auto-toc {
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
!! source digest: sha256:52fd7c31d7753fa4ea912b113bfc30c98f54839022ff9071e6b4604483f28f30
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
||||
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/bank-statement-import/tree/16.0/account_statement_import_sheet_file"><img alt="OCA/bank-statement-import" src="https://img.shields.io/badge/github-OCA%2Fbank--statement--import-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/bank-statement-import-16-0/bank-statement-import-16-0-account_statement_import_sheet_file"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/bank-statement-import&target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
|
||||
<p>This module allows you to import any TXT/CSV or XLSX file in Odoo as bank
|
||||
statements.</p>
|
||||
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/bank-statement-import/tree/17.0/account_statement_import_sheet_file"><img alt="OCA/bank-statement-import" src="https://img.shields.io/badge/github-OCA%2Fbank--statement--import-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/bank-statement-import-17-0/bank-statement-import-17-0-account_statement_import_sheet_file"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/bank-statement-import&target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
|
||||
<p>This module allows you to import any TXT/CSV or XLSX file in Odoo as
|
||||
bank statements.</p>
|
||||
<p><strong>Table of contents</strong></p>
|
||||
<div class="contents local topic" id="contents">
|
||||
<ul class="simple">
|
||||
@@ -393,8 +393,10 @@ statements.</p>
|
||||
<h1><a class="toc-backref" href="#toc-entry-1">Configuration</a></h1>
|
||||
<p>To create TXT/CSV/XLSX statement sheet columns mapping:</p>
|
||||
<ol class="arabic simple">
|
||||
<li>Open <em>Invoicing > Configuration > Accounting > Statement Sheet Mappings</em></li>
|
||||
<li>Create mapping(s) according to your online banking software statement format</li>
|
||||
<li>Open <em>Invoicing > Configuration > Accounting > Statement Sheet
|
||||
Mappings</em></li>
|
||||
<li>Create mapping(s) according to your online banking software statement
|
||||
format</li>
|
||||
</ol>
|
||||
</div>
|
||||
<div class="section" id="usage">
|
||||
@@ -402,7 +404,8 @@ statements.</p>
|
||||
<p>To use this module, you need to:</p>
|
||||
<ol class="arabic simple">
|
||||
<li>Get statement in TXT/CSV or XLSX from your online banking software</li>
|
||||
<li>Go to Odoo and and import the statement file, selecting corresponding format</li>
|
||||
<li>Go to Odoo and and import the statement file, selecting corresponding
|
||||
format</li>
|
||||
</ol>
|
||||
</div>
|
||||
<div class="section" id="changelog">
|
||||
@@ -422,7 +425,7 @@ statements.</p>
|
||||
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/bank-statement-import/issues">GitHub Issues</a>.
|
||||
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
|
||||
<a class="reference external" href="https://github.com/OCA/bank-statement-import/issues/new?body=module:%20account_statement_import_sheet_file%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
|
||||
<a class="reference external" href="https://github.com/OCA/bank-statement-import/issues/new?body=module:%20account_statement_import_sheet_file%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
|
||||
<p>Do not contact contributors directly about support or help with technical issues.</p>
|
||||
</div>
|
||||
<div class="section" id="credits">
|
||||
@@ -466,7 +469,7 @@ mission is to support the collaborative development of Odoo features and
|
||||
promote its widespread use.</p>
|
||||
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p>
|
||||
<p><a class="reference external image-reference" href="https://github.com/alexey-pelykh"><img alt="alexey-pelykh" src="https://github.com/alexey-pelykh.png?size=40px" /></a></p>
|
||||
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/bank-statement-import/tree/16.0/account_statement_import_sheet_file">OCA/bank-statement-import</a> project on GitHub.</p>
|
||||
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/bank-statement-import/tree/17.0/account_statement_import_sheet_file">OCA/bank-statement-import</a> project on GitHub.</p>
|
||||
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
3
requirements.txt
Normal file
3
requirements.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
# generated from manifests external_dependencies
|
||||
chardet
|
||||
xlrd
|
||||
Reference in New Issue
Block a user