mirror of
https://github.com/OCA/bank-statement-import.git
synced 2025-01-20 12:37:43 +02:00
[MIG] account_bank_statement_import_online_transferwise: Backport to 11.0
This commit is contained in:
@@ -14,16 +14,16 @@ Online Bank Statements: TransferWise.com
|
||||
: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/12.0/account_bank_statement_import_online_transferwise
|
||||
:target: https://github.com/OCA/bank-statement-import/tree/11.0/account_bank_statement_import_online_transferwise
|
||||
: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-12-0/bank-statement-import-12-0-account_bank_statement_import_online_transferwise
|
||||
:alt: Translate me on Weblate
|
||||
.. |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/11.0
|
||||
:alt: Try me on Runbot
|
||||
|
||||
|badge1| |badge2| |badge3| |badge4| |badge5|
|
||||
|badge1| |badge2| |badge3| |badge4| |badge5|
|
||||
|
||||
This module provides online bank statements from
|
||||
`TransferWise.com <https://transferwise.com/>`_.
|
||||
@@ -73,7 +73,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 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:%2011.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.
|
||||
|
||||
@@ -110,8 +110,8 @@ promote its widespread use.
|
||||
|
||||
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/11.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.
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
{
|
||||
'name': 'Online Bank Statements: TransferWise.com',
|
||||
'version': '12.0.1.0.0',
|
||||
'version': '11.0.1.0.0',
|
||||
'author':
|
||||
'Brainbean Apps, '
|
||||
'Dataplug, '
|
||||
|
||||
@@ -46,15 +46,16 @@ class OnlineBankStatementProviderTransferwise(models.Model):
|
||||
|
||||
@api.model
|
||||
def _get_available_services(self):
|
||||
return super()._get_available_services() + [
|
||||
('transferwise', 'TransferWise.com'),
|
||||
]
|
||||
return super(OnlineBankStatementProviderTransferwise, self) \
|
||||
._get_available_services() + [('transferwise', 'TransferWise.com')]
|
||||
|
||||
@api.multi
|
||||
def _obtain_statement_data(self, date_since, date_until):
|
||||
self.ensure_one()
|
||||
if self.service != 'transferwise':
|
||||
return super()._obtain_statement_data(
|
||||
return super(
|
||||
OnlineBankStatementProviderTransferwise, self
|
||||
)._obtain_statement_data(
|
||||
date_since,
|
||||
date_until,
|
||||
) # pragma: no cover
|
||||
|
||||
@@ -24,9 +24,11 @@ class TestAccountBankAccountStatementImportOnlineTransferwise(
|
||||
):
|
||||
|
||||
def setUp(self):
|
||||
super().setUp()
|
||||
super(
|
||||
TestAccountBankAccountStatementImportOnlineTransferwise, self
|
||||
).setUp()
|
||||
|
||||
self.now = fields.Datetime.now()
|
||||
self.now = fields.Datetime.from_string(fields.Datetime.now())
|
||||
self.currency_eur = self.env.ref('base.EUR')
|
||||
self.currency_usd = self.env.ref('base.USD')
|
||||
self.AccountJournal = self.env['account.journal']
|
||||
|
||||
Reference in New Issue
Block a user