diff --git a/account_statement_import_online_ponto/README.rst b/account_statement_import_online_ponto/README.rst index 22de898d..bc04ae5f 100644 --- a/account_statement_import_online_ponto/README.rst +++ b/account_statement_import_online_ponto/README.rst @@ -112,6 +112,10 @@ Contributors - Ronald Portier +- `Tesseratech `__: + + - Christian Doñate + Maintainers ----------- diff --git a/account_statement_import_online_ponto/__manifest__.py b/account_statement_import_online_ponto/__manifest__.py index c2cf4e3a..08d380a5 100644 --- a/account_statement_import_online_ponto/__manifest__.py +++ b/account_statement_import_online_ponto/__manifest__.py @@ -4,7 +4,7 @@ # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). { "name": "Online Bank Statements: MyPonto.com", - "version": "16.0.1.1.1", + "version": "17.0.1.1.1", "category": "Account", "website": "https://github.com/OCA/bank-statement-import", "author": "Florent de Labarre, Therp BV, Odoo Community Association (OCA)", diff --git a/account_statement_import_online_ponto/readme/CONTRIBUTORS.md b/account_statement_import_online_ponto/readme/CONTRIBUTORS.md index cb97ddef..a9dd48d2 100644 --- a/account_statement_import_online_ponto/readme/CONTRIBUTORS.md +++ b/account_statement_import_online_ponto/readme/CONTRIBUTORS.md @@ -4,3 +4,5 @@ - João Marques - [Therp BV](https://therp.nl): - Ronald Portier \<\> +- [Tesseratech](https://tesseratech.es): + - Christian Doñate diff --git a/account_statement_import_online_ponto/static/description/index.html b/account_statement_import_online_ponto/static/description/index.html index 4247230c..eda7844f 100644 --- a/account_statement_import_online_ponto/static/description/index.html +++ b/account_statement_import_online_ponto/static/description/index.html @@ -458,6 +458,10 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
  • Ronald Portier <ronald@therp.nl>
  • +
  • Tesseratech:
      +
    • Christian Doñate
    • +
    +
  • diff --git a/account_statement_import_online_ponto/tests/test_account_statement_import_online_ponto.py b/account_statement_import_online_ponto/tests/test_account_statement_import_online_ponto.py index 91ad8314..0f658f3d 100644 --- a/account_statement_import_online_ponto/tests/test_account_statement_import_online_ponto.py +++ b/account_statement_import_online_ponto/tests/test_account_statement_import_online_ponto.py @@ -257,7 +257,11 @@ class TestAccountStatementImportOnlinePonto(common.TransactionCase): self.provider._create_or_update_statement( data, statement_date, datetime(2019, 11, 2) ) - with self.mock_login(), self.mock_set_access_account(), self.mock_get_transactions(): # noqa: B950 + with ( + self.mock_login(), + self.mock_set_access_account(), + self.mock_get_transactions(), + ): # noqa: B950 vals = { "date_since": datetime(2019, 11, 4), "date_until": datetime(2019, 11, 5), @@ -277,7 +281,11 @@ class TestAccountStatementImportOnlinePonto(common.TransactionCase): self.assertEqual(new_statement.balance_end, 105.83) def test_ponto_execution_date(self): - with self.mock_login(), self.mock_set_access_account(), self.mock_get_transactions(): # noqa: B950 + with ( + self.mock_login(), + self.mock_set_access_account(), + self.mock_get_transactions(), + ): # noqa: B950 # First base selection on execution date. self.provider.ponto_date_field = "execution_date" statement = self._get_statements_from_wizard() # Will get 1 statement @@ -285,7 +293,11 @@ class TestAccountStatementImportOnlinePonto(common.TransactionCase): self._check_statement_amounts(statement, transaction_amounts[:2]) def test_ponto_value_date(self): - with self.mock_login(), self.mock_set_access_account(), self.mock_get_transactions(): # noqa: B950 + with ( + self.mock_login(), + self.mock_set_access_account(), + self.mock_get_transactions(), + ): # noqa: B950 # First base selection on execution date. self.provider.ponto_date_field = "value_date" statement = self._get_statements_from_wizard() # Will get 1 statement @@ -293,7 +305,11 @@ class TestAccountStatementImportOnlinePonto(common.TransactionCase): self._check_statement_amounts(statement, transaction_amounts[:3]) def test_ponto_get_transactions_multi(self): - with self.mock_login(), self.mock_set_access_account(), self.mock_get_transactions_multi(): # noqa: B950 + with ( + self.mock_login(), + self.mock_set_access_account(), + self.mock_get_transactions_multi(), + ): # noqa: B950 # First base selection on execution date. self.provider.ponto_date_field = "execution_date" # Expect statements for october and november. @@ -310,7 +326,11 @@ class TestAccountStatementImportOnlinePonto(common.TransactionCase): ) def test_ponto_scheduled(self): - with self.mock_login(), self.mock_set_access_account(), self.mock_get_transactions(): # noqa: B950 + with ( + self.mock_login(), + self.mock_set_access_account(), + self.mock_get_transactions(), + ): # noqa: B950 # Scheduled should get all transaction, ignoring date_until. self.provider.ponto_last_identifier = False date_since = datetime(2019, 11, 3) @@ -326,7 +346,11 @@ class TestAccountStatementImportOnlinePonto(common.TransactionCase): ) def test_ponto_scheduled_from_identifier(self): - with self.mock_login(), self.mock_set_access_account(), self.mock_get_transactions(): # noqa: B950 + with ( + self.mock_login(), + self.mock_set_access_account(), + self.mock_get_transactions(), + ): # noqa: B950 # Scheduled should get all transactions after last identifier. self.provider.ponto_last_identifier = "9ac50483-16dc-4a82-aa60-df56077405cd" date_since = datetime(2019, 11, 3) @@ -416,7 +440,11 @@ class TestAccountStatementImportOnlinePonto(common.TransactionCase): self.provider._create_or_update_statement( data, statement_date, datetime(2019, 11, 2) ) - with self.mock_login(), self.mock_set_access_account(), self.mock_get_transactions(): # noqa: B950 + with ( + self.mock_login(), + self.mock_set_access_account(), + self.mock_get_transactions(), + ): # noqa: B950 vals = { "date_since": datetime(2019, 11, 4), "date_until": datetime(2019, 11, 5), diff --git a/account_statement_import_online_ponto/views/online_bank_statement_provider.xml b/account_statement_import_online_ponto/views/online_bank_statement_provider.xml index d8464245..ee37e767 100644 --- a/account_statement_import_online_ponto/views/online_bank_statement_provider.xml +++ b/account_statement_import_online_ponto/views/online_bank_statement_provider.xml @@ -12,7 +12,7 @@