From 80db74736811bc9f899877dc2917afdbaf9b586a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roc=C3=ADo=20Vega?= Date: Mon, 2 Nov 2026 14:53:52 -0300 Subject: [PATCH] [FIX] hr_recruitment_ux: use a text attachment in the talent pool test The test attachment was named cv.pdf but its content is b"cv", not a PDF. With Documents installed, documents_hr_recruitment turns the applicant attachments into documents and counts the pages of every PDF, so pypdf logged a warning with a traceback and the build failed. The test only checks that the attachment is copied once, so a text file covers the same case. --- hr_recruitment_ux/tests/test_talent_pool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hr_recruitment_ux/tests/test_talent_pool.py b/hr_recruitment_ux/tests/test_talent_pool.py index 8baf31f8..0a32904d 100644 --- a/hr_recruitment_ux/tests/test_talent_pool.py +++ b/hr_recruitment_ux/tests/test_talent_pool.py @@ -15,7 +15,7 @@ def setUpClass(cls): ) cls.cv = cls.env["ir.attachment"].create( { - "name": "cv.pdf", + "name": "cv.txt", "raw": b"cv", "res_model": "hr.applicant", "res_id": cls.applicant.id,