[IMP] account_statement_import_online_ponto: pre-commit auto fixes

This commit is contained in:
Christian
2024-11-14 12:59:59 +01:00
parent 69972e38d6
commit 71b98fcc14
11 changed files with 106 additions and 101 deletions

View File

@@ -17,13 +17,13 @@ Online Bank Statements: MyPonto.com
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3 :alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fbank--statement--import-lightgray.png?logo=github .. |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_online_ponto :target: https://github.com/OCA/bank-statement-import/tree/17.0/account_statement_import_online_ponto
:alt: OCA/bank-statement-import :alt: OCA/bank-statement-import
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png .. |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_online_ponto :target: https://translation.odoo-community.org/projects/bank-statement-import-17-0/bank-statement-import-17-0-account_statement_import_online_ponto
:alt: Translate me on Weblate :alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png .. |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 :alt: Try me on Runboat
|badge1| |badge2| |badge3| |badge4| |badge5| |badge1| |badge2| |badge3| |badge4| |badge5|
@@ -40,45 +40,45 @@ Configuration
To configure online bank statements provider: To configure online bank statements provider:
#. Go to *Invoicing > Configuration > Bank Accounts* 1. Go to *Invoicing > Configuration > Bank Accounts*
#. Open bank account to configure and edit it 2. Open bank account to configure and edit it
#. Set *Bank Feeds* to *Online* 3. Set *Bank Feeds* to *Online*
#. Select *MyPonto.com* as online bank statements provider in 4. Select *MyPonto.com* as online bank statements provider in *Online
*Online Bank Statements (OCA)* section Bank Statements (OCA)* section
#. Save the bank account 5. Save the bank account
#. Click on provider and configure provider-specific settings. 6. Click on provider and configure provider-specific settings.
or, alternatively: or, alternatively:
#. Go to *Invoicing > Overview* 1. Go to *Invoicing > Overview*
#. Open settings of the corresponding journal account 2. Open settings of the corresponding journal account
#. Switch to *Bank Account* tab 3. Switch to *Bank Account* tab
#. Set *Bank Feeds* to *Online* 4. Set *Bank Feeds* to *Online*
#. Select *MyPonto.com* as online bank statements provider in 5. Select *MyPonto.com* as online bank statements provider in *Online
*Online Bank Statements (OCA)* section Bank Statements (OCA)* section
#. Save the bank account 6. Save the bank account
#. Click on provider and configure provider-specific settings. 7. Click on provider and configure provider-specific settings.
To obtain *Login* and *Key*: To obtain *Login* and *Key*:
#. Open `MyPonto.com <https://myponto.com/>`_. 1. Open `MyPonto.com <https://myponto.com/>`__.
Check also ``account_bank_statement_import_online`` configuration instructions Check also ``account_bank_statement_import_online`` configuration
for more information. instructions for more information.
Usage Usage
===== =====
To pull historical bank statements: To pull historical bank statements:
#. Go to *Invoicing > Configuration > Bank Accounts* 1. Go to *Invoicing > Configuration > Bank Accounts*
#. Select specific bank accounts 2. Select specific bank accounts
#. Launch *Actions > Online Bank Statements Pull Wizard* 3. Launch *Actions > Online Bank Statements Pull Wizard*
#. Configure date interval and click *Pull* 4. Configure date interval and click *Pull*
If historical data is not needed, then just simply wait for the scheduled If historical data is not needed, then just simply wait for the
activity "Pull Online Bank Statements" to be executed for getting new scheduled activity "Pull Online Bank Statements" to be executed for
transactions. getting new transactions.
Bug Tracker Bug Tracker
=========== ===========
@@ -86,7 +86,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues <https://github.com/OCA/bank-statement-import/issues>`_. 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. 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 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_online_ponto%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_online_ponto%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. Do not contact contributors directly about support or help with technical issues.
@@ -94,25 +94,26 @@ Credits
======= =======
Authors Authors
~~~~~~~ -------
* Florent de Labarre * Florent de Labarre
* Therp BV * Therp BV
Contributors Contributors
~~~~~~~~~~~~ ------------
* Florent de Labarre - Florent de Labarre
* `Tecnativa <https://www.tecnativa.com>`__: - `Tecnativa <https://www.tecnativa.com>`__:
* Pedro M. Baeza - Pedro M. Baeza
* João Marques - João Marques
* `Therp BV <https://therp.nl>`__:
* Ronald Portier <ronald@therp.nl> - `Therp BV <https://therp.nl>`__:
- Ronald Portier <ronald@therp.nl>
Maintainers Maintainers
~~~~~~~~~~~ -----------
This module is maintained by the OCA. This module is maintained by the OCA.
@@ -124,6 +125,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and mission is to support the collaborative development of Odoo features and
promote its widespread use. promote its widespread use.
This module is part of the `OCA/bank-statement-import <https://github.com/OCA/bank-statement-import/tree/16.0/account_statement_import_online_ponto>`_ 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_online_ponto>`_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

View File

@@ -33,7 +33,7 @@ class PontoInterface(models.AbstractModel):
login_headers = { login_headers = {
"Content-Type": "application/x-www-form-urlencoded", "Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json", "Accept": "application/json",
"Authorization": "Basic {login}".format(login=login), "Authorization": f"Basic {login}",
} }
_logger.debug(_("POST request on %(url)s"), dict(url=url)) _logger.debug(_("POST request on %(url)s"), dict(url=url))
response = requests.post( response = requests.post(

View File

@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"

View File

@@ -0,0 +1,27 @@
To configure online bank statements provider:
1. Go to *Invoicing \> Configuration \> Bank Accounts*
2. Open bank account to configure and edit it
3. Set *Bank Feeds* to *Online*
4. Select *MyPonto.com* as online bank statements provider in *Online
Bank Statements (OCA)* section
5. Save the bank account
6. Click on provider and configure provider-specific settings.
or, alternatively:
1. Go to *Invoicing \> Overview*
2. Open settings of the corresponding journal account
3. Switch to *Bank Account* tab
4. Set *Bank Feeds* to *Online*
5. Select *MyPonto.com* as online bank statements provider in *Online
Bank Statements (OCA)* section
6. Save the bank account
7. Click on provider and configure provider-specific settings.
To obtain *Login* and *Key*:
1. Open [MyPonto.com](https://myponto.com/).
Check also `account_bank_statement_import_online` configuration
instructions for more information.

View File

@@ -1,27 +0,0 @@
To configure online bank statements provider:
#. Go to *Invoicing > Configuration > Bank Accounts*
#. Open bank account to configure and edit it
#. Set *Bank Feeds* to *Online*
#. Select *MyPonto.com* as online bank statements provider in
*Online Bank Statements (OCA)* section
#. Save the bank account
#. Click on provider and configure provider-specific settings.
or, alternatively:
#. Go to *Invoicing > Overview*
#. Open settings of the corresponding journal account
#. Switch to *Bank Account* tab
#. Set *Bank Feeds* to *Online*
#. Select *MyPonto.com* as online bank statements provider in
*Online Bank Statements (OCA)* section
#. Save the bank account
#. Click on provider and configure provider-specific settings.
To obtain *Login* and *Key*:
#. Open `MyPonto.com <https://myponto.com/>`_.
Check also ``account_bank_statement_import_online`` configuration instructions
for more information.

View File

@@ -0,0 +1,6 @@
- Florent de Labarre
- [Tecnativa](https://www.tecnativa.com):
- Pedro M. Baeza
- João Marques
- [Therp BV](https://therp.nl):
- Ronald Portier \<<ronald@therp.nl>\>

View File

@@ -1,8 +0,0 @@
* Florent de Labarre
* `Tecnativa <https://www.tecnativa.com>`__:
* Pedro M. Baeza
* João Marques
* `Therp BV <https://therp.nl>`__:
* Ronald Portier <ronald@therp.nl>

View File

@@ -0,0 +1,10 @@
To pull historical bank statements:
1. Go to *Invoicing \> Configuration \> Bank Accounts*
2. Select specific bank accounts
3. Launch *Actions \> Online Bank Statements Pull Wizard*
4. Configure date interval and click *Pull*
If historical data is not needed, then just simply wait for the
scheduled activity "Pull Online Bank Statements" to be executed for
getting new transactions.

View File

@@ -1,10 +0,0 @@
To pull historical bank statements:
#. Go to *Invoicing > Configuration > Bank Accounts*
#. Select specific bank accounts
#. Launch *Actions > Online Bank Statements Pull Wizard*
#. Configure date interval and click *Pull*
If historical data is not needed, then just simply wait for the scheduled
activity "Pull Online Bank Statements" to be executed for getting new
transactions.

View File

@@ -8,10 +8,11 @@
/* /*
:Author: David Goodger (goodger@python.org) :Author: David Goodger (goodger@python.org)
:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $ :Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $
:Copyright: This stylesheet has been placed in the public domain. :Copyright: This stylesheet has been placed in the public domain.
Default cascading style sheet for the HTML output of Docutils. Default cascading style sheet for the HTML output of Docutils.
Despite the name, some widely supported CSS2 features are used.
See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
customize this style sheet. customize this style sheet.
@@ -274,7 +275,7 @@ pre.literal-block, pre.doctest-block, pre.math, pre.code {
margin-left: 2em ; margin-left: 2em ;
margin-right: 2em } margin-right: 2em }
pre.code .ln { color: grey; } /* line numbers */ pre.code .ln { color: gray; } /* line numbers */
pre.code, code { background-color: #eeeeee } pre.code, code { background-color: #eeeeee }
pre.code .comment, code .comment { color: #5C6576 } pre.code .comment, code .comment { color: #5C6576 }
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
@@ -300,7 +301,7 @@ span.option {
span.pre { span.pre {
white-space: pre } white-space: pre }
span.problematic { span.problematic, pre.problematic {
color: red } color: red }
span.section-subtitle { span.section-subtitle {
@@ -368,7 +369,7 @@ ul.auto-toc {
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:4761a86432e267dd6dc91976fd25d4ea5ae91d06c8f1bf8a50c24c1916268d8e !! source digest: sha256:4761a86432e267dd6dc91976fd25d4ea5ae91d06c8f1bf8a50c24c1916268d8e
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<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_online_ponto"><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_online_ponto"><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><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_online_ponto"><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_online_ponto"><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 provides online bank statements from MyPonto.com.</p> <p>This module provides online bank statements from MyPonto.com.</p>
<p><strong>Table of contents</strong></p> <p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents"> <div class="contents local topic" id="contents">
@@ -391,8 +392,8 @@ ul.auto-toc {
<li>Go to <em>Invoicing &gt; Configuration &gt; Bank Accounts</em></li> <li>Go to <em>Invoicing &gt; Configuration &gt; Bank Accounts</em></li>
<li>Open bank account to configure and edit it</li> <li>Open bank account to configure and edit it</li>
<li>Set <em>Bank Feeds</em> to <em>Online</em></li> <li>Set <em>Bank Feeds</em> to <em>Online</em></li>
<li>Select <em>MyPonto.com</em> as online bank statements provider in <li>Select <em>MyPonto.com</em> as online bank statements provider in <em>Online
<em>Online Bank Statements (OCA)</em> section</li> Bank Statements (OCA)</em> section</li>
<li>Save the bank account</li> <li>Save the bank account</li>
<li>Click on provider and configure provider-specific settings.</li> <li>Click on provider and configure provider-specific settings.</li>
</ol> </ol>
@@ -402,8 +403,8 @@ ul.auto-toc {
<li>Open settings of the corresponding journal account</li> <li>Open settings of the corresponding journal account</li>
<li>Switch to <em>Bank Account</em> tab</li> <li>Switch to <em>Bank Account</em> tab</li>
<li>Set <em>Bank Feeds</em> to <em>Online</em></li> <li>Set <em>Bank Feeds</em> to <em>Online</em></li>
<li>Select <em>MyPonto.com</em> as online bank statements provider in <li>Select <em>MyPonto.com</em> as online bank statements provider in <em>Online
<em>Online Bank Statements (OCA)</em> section</li> Bank Statements (OCA)</em> section</li>
<li>Save the bank account</li> <li>Save the bank account</li>
<li>Click on provider and configure provider-specific settings.</li> <li>Click on provider and configure provider-specific settings.</li>
</ol> </ol>
@@ -411,8 +412,8 @@ ul.auto-toc {
<ol class="arabic simple"> <ol class="arabic simple">
<li>Open <a class="reference external" href="https://myponto.com/">MyPonto.com</a>.</li> <li>Open <a class="reference external" href="https://myponto.com/">MyPonto.com</a>.</li>
</ol> </ol>
<p>Check also <tt class="docutils literal">account_bank_statement_import_online</tt> configuration instructions <p>Check also <tt class="docutils literal">account_bank_statement_import_online</tt> configuration
for more information.</p> instructions for more information.</p>
</div> </div>
<div class="section" id="usage"> <div class="section" id="usage">
<h1><a class="toc-backref" href="#toc-entry-2">Usage</a></h1> <h1><a class="toc-backref" href="#toc-entry-2">Usage</a></h1>
@@ -423,16 +424,16 @@ for more information.</p>
<li>Launch <em>Actions &gt; Online Bank Statements Pull Wizard</em></li> <li>Launch <em>Actions &gt; Online Bank Statements Pull Wizard</em></li>
<li>Configure date interval and click <em>Pull</em></li> <li>Configure date interval and click <em>Pull</em></li>
</ol> </ol>
<p>If historical data is not needed, then just simply wait for the scheduled <p>If historical data is not needed, then just simply wait for the
activity “Pull Online Bank Statements” to be executed for getting new scheduled activity “Pull Online Bank Statements” to be executed for
transactions.</p> getting new transactions.</p>
</div> </div>
<div class="section" id="bug-tracker"> <div class="section" id="bug-tracker">
<h1><a class="toc-backref" href="#toc-entry-3">Bug Tracker</a></h1> <h1><a class="toc-backref" href="#toc-entry-3">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>. <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. 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 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_online_ponto%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_online_ponto%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> <p>Do not contact contributors directly about support or help with technical issues.</p>
</div> </div>
<div class="section" id="credits"> <div class="section" id="credits">
@@ -462,11 +463,13 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
<div class="section" id="maintainers"> <div class="section" id="maintainers">
<h2><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h2> <h2><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h2>
<p>This module is maintained by the OCA.</p> <p>This module is maintained by the OCA.</p>
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a> <a class="reference external image-reference" href="https://odoo-community.org">
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
</a>
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose <p>OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and mission is to support the collaborative development of Odoo features and
promote its widespread use.</p> promote its widespread use.</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_online_ponto">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_online_ponto">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> <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>
</div> </div>