From 6366caf6b012759632522804f7fd65554c52ff66 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Mon, 23 Sep 2024 11:44:32 +0200 Subject: [PATCH 1/2] [FIX] account_invoice_download: don't set default_name in context If default_name is set in context just to have a default label on the account.invoice.import.download, it will also be used if do a manual run right after, so you will get draft invoices with a 'name' already set ! --- .../views/account_invoice_import_config.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account_invoice_download/views/account_invoice_import_config.xml b/account_invoice_download/views/account_invoice_import_config.xml index 4bc8703da6..361a3ab364 100644 --- a/account_invoice_download/views/account_invoice_import_config.xml +++ b/account_invoice_download/views/account_invoice_import_config.xml @@ -20,7 +20,7 @@ class="oe_stat_button" type="action" name="%(account_invoice_download.account_invoice_download_config_action)d" - context="{'search_default_import_config_id': active_id, 'default_import_config_id': active_id, 'default_name': name}" + context="{'search_default_import_config_id': active_id, 'default_import_config_id': active_id}" icon="fa-bars" > Date: Sun, 29 Sep 2024 12:10:06 +0200 Subject: [PATCH 2/2] [FIX] pypdf version for tests --- test-requirements.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test-requirements.txt b/test-requirements.txt index bfcce8e2ab..98a1ae8d5b 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -4,3 +4,5 @@ responses # Python Dependencies PyYAML xmlunittest +# tests use python 3.6 and pypdf dropped support for python 3.6-3.7 in 5.0 +pypdf==4.3.1