Skip to content

[FIX] hr_recruitment_ux: use a text attachment in the talent pool test - #77

Closed
rov-adhoc wants to merge 1 commit into
ingadhoc:20.0from
adhoc-dev:20.0-t-76585-rov
Closed

rov-adhoc wants to merge 1 commit into
ingadhoc:20.0from
adhoc-dev:20.0-t-76585-rov

Conversation

@rov-adhoc

Copy link
Copy Markdown

Tarea: https://www.adhoc.inc/odoo/project.task/76585

The talent pool test creates an attachment named cv.pdf whose content is b"cv", not a PDF. When Documents is installed, documents_hr_recruitment (auto_install with documents_hr + hr_recruitment) turns applicant attachments into documents and counts the pages of every PDF: pypdf logs a warning with a traceback (Impossible to count pages in 'cv.pdf') and the build fails.

The test only checks that the attachment is copied once to the talent, so a text attachment covers the same case.

Goes with ingadhoc/enterprise-extensions#1158 (same branch), which makes documents_account_bg installable in 20.0 and so brings Documents into the build.

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.
@roboadhoc

Copy link
Copy Markdown
Contributor

Pull request status dashboard

@cav-adhoc

Copy link
Copy Markdown
Contributor

Ya lo mezclo les acá #78 🙂

@cav-adhoc cav-adhoc closed this Nov 3, 2026
@fw-bot-adhoc
fw-bot-adhoc deleted the 20.0-t-76585-rov branch November 10, 2026 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants