Skip to content

Commit

Permalink
[IMP] account_statement_import_sheet_file: pre-commit execution
Browse files Browse the repository at this point in the history
  • Loading branch information
rov-adhoc committed Apr 23, 2024
1 parent edfdf4c commit 9e7a6e6
Show file tree
Hide file tree
Showing 14 changed files with 85 additions and 75 deletions.
65 changes: 34 additions & 31 deletions account_statement_import_sheet_file/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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**

Expand All @@ -41,70 +41,73 @@ 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
===========

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.

Credits
=======

Authors
~~~~~~~
-------

* ForgeFlow
* CorporateHub

Contributors
~~~~~~~~~~~~
------------

* Alexis de Lattre <[email protected]>
* Sebastien BEAU <[email protected]>
* Katherine Zaoral
* Tecnativa (https://www.tecnativa.com)
- Alexis de Lattre <[email protected]>
- Sebastien BEAU <[email protected]>
- 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 <[email protected]>
* Miquel Raïch Regué <[email protected]>
- Jordi Ballester Alomar <[email protected]>
- Miquel Raïch Regué <[email protected]>

* `CorporateHub <https://corporatehub.eu/>`__
- `CorporateHub <https://corporatehub.eu/>`__

* Alexey Pelykh <[email protected]>
- Alexey Pelykh <[email protected]>

Maintainers
~~~~~~~~~~~
-----------

This module is maintained by the OCA.

Expand All @@ -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.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

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:
Expand Down Expand Up @@ -432,7 +432,7 @@ def _convert_line_to_transactions(self, line): # noqa: C901
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:
Expand Down
3 changes: 3 additions & 0 deletions account_statement_import_sheet_file/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
6 changes: 6 additions & 0 deletions account_statement_import_sheet_file/readme/CONFIGURE.md
Original file line number Diff line number Diff line change
@@ -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
4 changes: 0 additions & 4 deletions account_statement_import_sheet_file/readme/CONFIGURE.rst

This file was deleted.

12 changes: 12 additions & 0 deletions account_statement_import_sheet_file/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
- Alexis de Lattre \<<[email protected]>\>
- Sebastien BEAU \<<[email protected]>\>
- 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 \<<[email protected]>\>
- Miquel Raïch Regué \<<[email protected]>\>
- [CorporateHub](https://corporatehub.eu/)
- Alexey Pelykh \<<[email protected]>\>
17 changes: 0 additions & 17 deletions account_statement_import_sheet_file/readme/CONTRIBUTORS.rst

This file was deleted.

Original file line number Diff line number Diff line change
@@ -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 changes: 7 additions & 0 deletions account_statement_import_sheet_file/readme/HISTORY.md
Original file line number Diff line number Diff line change
@@ -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.
7 changes: 0 additions & 7 deletions account_statement_import_sheet_file/readme/HISTORY.rst

This file was deleted.

5 changes: 5 additions & 0 deletions account_statement_import_sheet_file/readme/USAGE.md
Original file line number Diff line number Diff line change
@@ -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
4 changes: 0 additions & 4 deletions account_statement_import_sheet_file/readme/USAGE.rst

This file was deleted.

19 changes: 11 additions & 8 deletions account_statement_import_sheet_file/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -369,9 +369,9 @@ <h1 class="title">Bank Statement TXT/CSV/XLSX Import</h1>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:987e1d38f2275461270dcb08917d239239dc18849a4ea903f46639d9363f2189
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<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&amp;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&amp;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">
Expand All @@ -394,16 +394,19 @@ <h1 class="title">Bank Statement TXT/CSV/XLSX Import</h1>
<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 &gt; Configuration &gt; Accounting &gt; Statement Sheet Mappings</em></li>
<li>Create mapping(s) according to your online banking software statement format</li>
<li>Open <em>Invoicing &gt; Configuration &gt; Accounting &gt; 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">
<h1><a class="toc-backref" href="#toc-entry-2">Usage</a></h1>
<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">
Expand All @@ -423,7 +426,7 @@ <h1><a class="toc-backref" href="#toc-entry-5">Bug Tracker</a></h1>
<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">
Expand Down Expand Up @@ -467,7 +470,7 @@ <h2><a class="toc-backref" href="#toc-entry-9">Maintainers</a></h2>
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>
Expand Down
3 changes: 3 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# generated from manifests external_dependencies
chardet
xlrd

0 comments on commit 9e7a6e6

Please sign in to comment.