diff --git a/account_statement_import_online_qonto/models/online_bank_statement_provider_qonto.py b/account_statement_import_online_qonto/models/online_bank_statement_provider_qonto.py index 2cc04231..e3b4d465 100644 --- a/account_statement_import_online_qonto/models/online_bank_statement_provider_qonto.py +++ b/account_statement_import_online_qonto/models/online_bank_statement_provider_qonto.py @@ -26,13 +26,19 @@ class OnlineBankStatementProviderQonto(models.Model): def _obtain_statement_data(self, date_since, date_until): self.ensure_one() if self.service != "qonto": - return super()._obtain_statement_data(date_since, date_until,) + return super()._obtain_statement_data( + date_since, + date_until, + ) return self._qonto_obtain_statement_data(date_since, date_until) def _get_statement_date(self, date_since, date_until): self.ensure_one() if self.service != "qonto": - return super()._get_statement_date(date_since, date_until,) + return super()._get_statement_date( + date_since, + date_until, + ) return date_since.astimezone(pytz.timezone("Europe/Paris")).date() ######### diff --git a/account_statement_import_online_qonto/tests/test_account_bank_statement_import_online_qonto.py b/account_statement_import_online_qonto/tests/test_account_bank_statement_import_online_qonto.py index e5c5209e..cb621fb8 100644 --- a/account_statement_import_online_qonto/tests/test_account_bank_statement_import_online_qonto.py +++ b/account_statement_import_online_qonto/tests/test_account_bank_statement_import_online_qonto.py @@ -122,7 +122,8 @@ class TestAccountBankAccountStatementImportOnlineQonto(common.TransactionCase): def test_qonto(self): with self.mock_transaction(), self.mock_slug(): lines, statement_values = self.provider._obtain_statement_data( - datetime(2020, 4, 15), datetime(2020, 4, 17), + datetime(2020, 4, 15), + datetime(2020, 4, 17), ) self.assertEqual(len(lines), 2) diff --git a/setup/account_bank_statement_import_online_qonto/odoo/addons/account_bank_statement_import_online_qonto b/setup/account_bank_statement_import_online_qonto/odoo/addons/account_bank_statement_import_online_qonto new file mode 120000 index 00000000..7928bb92 --- /dev/null +++ b/setup/account_bank_statement_import_online_qonto/odoo/addons/account_bank_statement_import_online_qonto @@ -0,0 +1 @@ +../../../../account_bank_statement_import_online_qonto \ No newline at end of file diff --git a/setup/account_bank_statement_import_online_qonto/setup.py b/setup/account_bank_statement_import_online_qonto/setup.py new file mode 100644 index 00000000..28c57bb6 --- /dev/null +++ b/setup/account_bank_statement_import_online_qonto/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)