From 989ead38814af7c6320fddd223f4c2fb2ae1c2ca Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Sun, 17 Mar 2024 12:37:58 +0100 Subject: [PATCH] [FIX] account_statement_import_online_gocardless: Increase timeout It turns out that the timeout is for receiving whole answer, so in real tests, the previous timeout was not enough for getting the answer when there are some transactions load (like a month). Let's increase this timeout then to a reasonable amount. --- .../models/online_bank_statement_provider.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account_statement_import_online_gocardless/models/online_bank_statement_provider.py b/account_statement_import_online_gocardless/models/online_bank_statement_provider.py index d92fadf3..66cbd265 100644 --- a/account_statement_import_online_gocardless/models/online_bank_statement_provider.py +++ b/account_statement_import_online_gocardless/models/online_bank_statement_provider.py @@ -14,7 +14,7 @@ from odoo.exceptions import UserError from odoo.tools import DEFAULT_SERVER_DATE_FORMAT as DF GOCARDLESS_ENDPOINT = "https://bankaccountdata.gocardless.com/api/v2" -REQUESTS_TIMEOUT = 5 +REQUESTS_TIMEOUT = 60 class OnlineBankStatementProvider(models.Model):