From 15a994eb8a60d01d05202fbd637f04df81b0cef6 Mon Sep 17 00:00:00 2001 From: thien Date: Wed, 18 Sep 2024 15:51:46 +0700 Subject: [PATCH] [FIX] pdf_helper: fix issue pypdf 5.0 dropped support for python<=3.7 --- account_invoice_import_simple_pdf/__manifest__.py | 2 +- pdf_helper/__manifest__.py | 2 +- requirements.txt | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/account_invoice_import_simple_pdf/__manifest__.py b/account_invoice_import_simple_pdf/__manifest__.py index 62111358f0..f157a716ca 100644 --- a/account_invoice_import_simple_pdf/__manifest__.py +++ b/account_invoice_import_simple_pdf/__manifest__.py @@ -16,7 +16,7 @@ "python": [ "regex", "dateparser", - "pypdf>=3.1.0", + "pypdf>=3.1.0,<5.0", ], "deb": ["libmupdf-dev", "mupdf", "mupdf-tools", "poppler-utils"], }, diff --git a/pdf_helper/__manifest__.py b/pdf_helper/__manifest__.py index f59b56b1cf..f565a3189b 100644 --- a/pdf_helper/__manifest__.py +++ b/pdf_helper/__manifest__.py @@ -15,5 +15,5 @@ "depends": [ "base", ], - "external_dependencies": {"python": ["pypdf"]}, + "external_dependencies": {"python": ["pypdf>=3.1.0,<5.0"]}, } diff --git a/requirements.txt b/requirements.txt index d72b73d55c..c286b36efc 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,8 +4,7 @@ factur-x invoice2data ovh phonenumbers -pypdf -pypdf>=3.1.0 +pypdf>=3.1.0,<5.0 pyyaml regex xmlschema