[MIG] account_bank_statement_import_online_transferwise: Migration to 13.0

This commit is contained in:
Alexey Pelykh
2021-05-11 21:57:29 +02:00
committed by Emanuel Cino
parent f5ae704071
commit d8d3f3daea
5 changed files with 77 additions and 32 deletions

View File

@@ -1,6 +1,6 @@
======================================== ===================================================
Online Bank Statements: TransferWise.com Online Bank Statements: Wise.com (TransferWise.com)
======================================== ===================================================
.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !! !! This file is generated by oca-gen-addon-readme !!
@@ -14,19 +14,20 @@ Online Bank Statements: TransferWise.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/12.0/account_bank_statement_import_online_transferwise :target: https://github.com/OCA/bank-statement-import/tree/13.0/account_bank_statement_import_online_transferwise
: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-12-0/bank-statement-import-12-0-account_bank_statement_import_online_transferwise :target: https://translation.odoo-community.org/projects/bank-statement-import-13-0/bank-statement-import-13-0-account_bank_statement_import_online_transferwise
:alt: Translate me on Weblate :alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/174/12.0 :target: https://runbot.odoo-community.org/runbot/174/13.0
:alt: Try me on Runbot :alt: Try me on Runbot
|badge1| |badge2| |badge3| |badge4| |badge5| |badge1| |badge2| |badge3| |badge4| |badge5|
This module provides online bank statements from This module provides online bank statements from
`TransferWise.com <https://transferwise.com/>`__. `Wise.com <https://wise.com/>`__.
(formely `TransferWise.com <https://transferwise.com/>`__).
**Table of contents** **Table of contents**
@@ -41,7 +42,7 @@ To configure online bank statements provider:
#. Go to *Invoicing > Configuration > Bank Accounts* #. Go to *Invoicing > Configuration > Bank Accounts*
#. Open bank account to configure and edit it #. Open bank account to configure and edit it
#. Set *Bank Feeds* to *Online* #. Set *Bank Feeds* to *Online*
#. Select *TransferWise.com* as online bank statements provider in #. Select *Wise.com (TransferWise.com)* as online bank statements provider in
*Online Bank Statements (OCA)* section *Online Bank Statements (OCA)* section
#. Save the bank account #. Save the bank account
#. Click on provider and configure provider-specific settings. #. Click on provider and configure provider-specific settings.
@@ -52,7 +53,7 @@ or, alternatively:
#. Open settings of the corresponding journal account #. Open settings of the corresponding journal account
#. Switch to *Bank Account* tab #. Switch to *Bank Account* tab
#. Set *Bank Feeds* to *Online* #. Set *Bank Feeds* to *Online*
#. Select *TransferWise.com* as online bank statements provider in #. Select *Wise.com (TransferWise.com)* as online bank statements provider in
*Online Bank Statements (OCA)* section *Online Bank Statements (OCA)* section
#. Save the bank account #. Save the bank account
#. Click on provider and configure provider-specific settings. #. Click on provider and configure provider-specific settings.
@@ -67,13 +68,19 @@ To pull historical bank statements:
#. Launch *Actions > Online Bank Statements Pull Wizard* #. Launch *Actions > Online Bank Statements Pull Wizard*
#. Configure date interval and click *Pull* #. Configure date interval and click *Pull*
To configure Strong Customer Authentication:
#. Go to provider-specific settings and either press *Generate Key* or paste
manually-generate private and public keys
#. Navigate to `Wise.com <https://wise.com/public-keys/>`__ and register the public key.
Bug Tracker 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 smashing it by providing a detailed and welcomed If you spotted it first, help us smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/bank-statement-import/issues/new?body=module:%20account_bank_statement_import_online_transferwise%0Aversion:%2012.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_bank_statement_import_online_transferwise%0Aversion:%2013.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.
@@ -113,6 +120,6 @@ Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
|maintainer-alexey-pelykh| |maintainer-alexey-pelykh|
This module is part of the `OCA/bank-statement-import <https://github.com/OCA/bank-statement-import/tree/12.0/account_bank_statement_import_online_transferwise>`_ project on GitHub. This module is part of the `OCA/bank-statement-import <https://github.com/OCA/bank-statement-import/tree/13.0/account_bank_statement_import_online_transferwise>`_ 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

@@ -4,8 +4,8 @@
{ {
"name": "Online Bank Statements: Wise.com (TransferWise.com)", "name": "Online Bank Statements: Wise.com (TransferWise.com)",
"version": "12.0.1.0.3", "version": "13.0.1.0.0",
"author": "CorporateHub, " "Odoo Community Association (OCA)", "author": "CorporateHub, Odoo Community Association (OCA)",
"maintainers": ["alexey-pelykh"], "maintainers": ["alexey-pelykh"],
"website": "https://github.com/OCA/bank-statement-import/", "website": "https://github.com/OCA/bank-statement-import/",
"license": "AGPL-3", "license": "AGPL-3",

View File

@@ -1,12 +1,12 @@
# Translation of Odoo Server. # Translation of Odoo Server.
# This file contains the translation of the following modules: # This file contains the translation of the following modules:
# * account_bank_statement_import_online_transferwise # * account_bank_statement_import_online_transferwise
# #
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Odoo Server 12.0\n" "Project-Id-Version: Odoo Server 13.0\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"Last-Translator: <>\n" "Last-Translator: \n"
"Language-Team: \n" "Language-Team: \n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
@@ -24,19 +24,24 @@ msgid "API key"
msgstr "" msgstr ""
#. module: account_bank_statement_import_online_transferwise #. module: account_bank_statement_import_online_transferwise
#: code:addons/account_bank_statement_import_online_transferwise/models/online_bank_statement_provider_transferwise.py:131 #: code:addons/account_bank_statement_import_online_transferwise/models/online_bank_statement_provider_transferwise.py:0
#, python-format #, python-format
msgid "Ending balance unavailable" msgid "Ending balance unavailable"
msgstr "" msgstr ""
#. module: account_bank_statement_import_online_transferwise #. module: account_bank_statement_import_online_transferwise
#: code:addons/account_bank_statement_import_online_transferwise/models/online_bank_statement_provider_transferwise.py:250 #: code:addons/account_bank_statement_import_online_transferwise/models/online_bank_statement_provider_transferwise.py:0
#, python-format #, python-format
msgid "Fee for %s" msgid "Fee for %s"
msgstr "" msgstr ""
#. module: account_bank_statement_import_online_transferwise #. module: account_bank_statement_import_online_transferwise
#: code:addons/account_bank_statement_import_online_transferwise/models/online_bank_statement_provider_transferwise.py:281 #: model_terms:ir.ui.view,arch_db:account_bank_statement_import_online_transferwise.online_bank_statement_provider_form
msgid "Generate Key"
msgstr ""
#. module: account_bank_statement_import_online_transferwise
#: code:addons/account_bank_statement_import_online_transferwise/models/online_bank_statement_provider_transferwise.py:0
#, python-format #, python-format
msgid "No API key specified!" msgid "No API key specified!"
msgstr "" msgstr ""
@@ -46,14 +51,45 @@ msgstr ""
msgid "Online Bank Statement Provider" msgid "Online Bank Statement Provider"
msgstr "" msgstr ""
#. module: account_bank_statement_import_online_transferwise
#: model:ir.model.fields,field_description:account_bank_statement_import_online_transferwise.field_online_bank_statement_provider__transferwise_profile
msgid "Origin"
msgstr ""
#. module: account_bank_statement_import_online_transferwise
#: model_terms:ir.ui.view,arch_db:account_bank_statement_import_online_transferwise.online_bank_statement_provider_form
msgid "Private key"
msgstr ""
#. module: account_bank_statement_import_online_transferwise #. module: account_bank_statement_import_online_transferwise
#: model_terms:ir.ui.view,arch_db:account_bank_statement_import_online_transferwise.online_bank_statement_provider_form #: model_terms:ir.ui.view,arch_db:account_bank_statement_import_online_transferwise.online_bank_statement_provider_form
msgid "Profile" msgid "Profile"
msgstr "" msgstr ""
#. module: account_bank_statement_import_online_transferwise #. module: account_bank_statement_import_online_transferwise
#: code:addons/account_bank_statement_import_online_transferwise/models/online_bank_statement_provider_transferwise.py:255 #: model_terms:ir.ui.view,arch_db:account_bank_statement_import_online_transferwise.online_bank_statement_provider_form
msgid "Public key"
msgstr ""
#. module: account_bank_statement_import_online_transferwise
#: model_terms:ir.ui.view,arch_db:account_bank_statement_import_online_transferwise.online_bank_statement_provider_form
msgid "Strong Customer Authentication"
msgstr ""
#. module: account_bank_statement_import_online_transferwise
#: code:addons/account_bank_statement_import_online_transferwise/models/online_bank_statement_provider_transferwise.py:0
#, python-format
msgid "Strong Customer Authentication is not configured"
msgstr ""
#. module: account_bank_statement_import_online_transferwise
#: code:addons/account_bank_statement_import_online_transferwise/models/online_bank_statement_provider_transferwise.py:0
#, python-format #, python-format
msgid "Transaction fee for %s" msgid "Transaction fee for %s"
msgstr "" msgstr ""
#. module: account_bank_statement_import_online_transferwise
#: code:addons/account_bank_statement_import_online_transferwise/models/online_bank_statement_provider_transferwise.py:0
#, python-format
msgid "Unable to parse key"
msgstr ""

View File

@@ -66,7 +66,6 @@ class OnlineBankStatementProviderTransferwise(models.Model):
("transferwise", "Wise.com (TransferWise.com)"), ("transferwise", "Wise.com (TransferWise.com)"),
] ]
@api.multi
def _obtain_statement_data(self, date_since, date_until): def _obtain_statement_data(self, date_since, date_until):
self.ensure_one() self.ensure_one()
if self.service != "transferwise": if self.service != "transferwise":
@@ -325,7 +324,6 @@ class OnlineBankStatementProviderTransferwise(models.Model):
_logger.warning("Unable to parse key", exc_info=True) _logger.warning("Unable to parse key", exc_info=True)
raise UserError(_("Unable to parse key")) raise UserError(_("Unable to parse key"))
@api.multi
def _transferwise_generate_key(self): def _transferwise_generate_key(self):
self.ensure_one() self.ensure_one()
@@ -344,7 +342,6 @@ class OnlineBankStatementProviderTransferwise(models.Model):
.decode() .decode()
) )
@api.multi
def button_transferwise_generate_key(self): def button_transferwise_generate_key(self):
for provider in self: for provider in self:
provider._transferwise_generate_key() provider._transferwise_generate_key()

View File

@@ -4,7 +4,7 @@
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="Docutils 0.15.1: http://docutils.sourceforge.net/" /> <meta name="generator" content="Docutils 0.15.1: http://docutils.sourceforge.net/" />
<title>Online Bank Statements: TransferWise.com</title> <title>Online Bank Statements: Wise.com (TransferWise.com)</title>
<style type="text/css"> <style type="text/css">
/* /*
@@ -360,16 +360,17 @@ ul.auto-toc {
</style> </style>
</head> </head>
<body> <body>
<div class="document" id="online-bank-statements-transferwise-com"> <div class="document" id="online-bank-statements-wise-com-transferwise-com">
<h1 class="title">Online Bank Statements: TransferWise.com</h1> <h1 class="title">Online Bank Statements: Wise.com (TransferWise.com)</h1>
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! <!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !! !! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !! !! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external" 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" 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" href="https://github.com/OCA/bank-statement-import/tree/12.0/account_bank_statement_import_online_transferwise"><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" href="https://translation.odoo-community.org/projects/bank-statement-import-12-0/bank-statement-import-12-0-account_bank_statement_import_online_transferwise"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/174/12.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p> <p><a class="reference external" 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" 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" href="https://github.com/OCA/bank-statement-import/tree/13.0/account_bank_statement_import_online_transferwise"><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" href="https://translation.odoo-community.org/projects/bank-statement-import-13-0/bank-statement-import-13-0-account_bank_statement_import_online_transferwise"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/174/13.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
<p>This module provides online bank statements from <p>This module provides online bank statements from
<a class="reference external" href="https://transferwise.com/">TransferWise.com</a>.</p> <a class="reference external" href="https://wise.com/">Wise.com</a>.
(formely <a class="reference external" href="https://transferwise.com/">TransferWise.com</a>).</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">
<ul class="simple"> <ul class="simple">
@@ -391,7 +392,7 @@ 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>TransferWise.com</em> as online bank statements provider in <li>Select <em>Wise.com (TransferWise.com)</em> as online bank statements provider in
<em>Online Bank Statements (OCA)</em> section</li> <em>Online 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>
@@ -402,7 +403,7 @@ 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>TransferWise.com</em> as online bank statements provider in <li>Select <em>Wise.com (TransferWise.com)</em> as online bank statements provider in
<em>Online Bank Statements (OCA)</em> section</li> <em>Online 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>
@@ -417,13 +418,17 @@ ul.auto-toc {
<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>To configure Strong Customer Authentication:</p>
<p>#. Go to provider-specific settings and either press <em>Generate Key</em> or paste
manually-generate private and public keys
#. Navigate to <a class="reference external" href="https://wise.com/public-keys/">Wise.com</a> and register the public key.</p>
</div> </div>
<div class="section" id="bug-tracker"> <div class="section" id="bug-tracker">
<h1><a class="toc-backref" href="#id3">Bug Tracker</a></h1> <h1><a class="toc-backref" href="#id3">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 smashing it by providing a detailed and welcomed If you spotted it first, help us smashing it by providing a detailed and welcomed
<a class="reference external" href="https://github.com/OCA/bank-statement-import/issues/new?body=module:%20account_bank_statement_import_online_transferwise%0Aversion:%2012.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_bank_statement_import_online_transferwise%0Aversion:%2013.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">
@@ -452,7 +457,7 @@ mission is to support the collaborative development of Odoo features and
promote its widespread use.</p> promote its widespread use.</p>
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p> <p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p>
<p><a class="reference external" href="https://github.com/alexey-pelykh"><img alt="alexey-pelykh" src="https://github.com/alexey-pelykh.png?size=40px" /></a></p> <p><a class="reference external" 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/12.0/account_bank_statement_import_online_transferwise">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/13.0/account_bank_statement_import_online_transferwise">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>