Use the library PyMuPDF (https://github.com/pymupdf/pymupdf) to attempt reading the PDF payslip.
auto_awesome What this module does
AI-generated from the code · Odoo 16.0Adds a PyMuPDF-based fallback so Odoo can still read the text of a PDF payslip when the normal reader fails, improving payslip import in the payroll management wizard.
This module extends the payroll management wizard used to import payslips from PDF files. It does not add new menus or screens; it changes what happens behind the scenes when Odoo tries to read a PDF payslip.
When the standard reading attempt fails, the module now tries a second method using the PyMuPDF library. It opens the PDF, extracts the text of each page, and rebuilds a simple PDF containing that text. The rebuilt PDF is then handed back to the normal reader, so the rest of the payslip import can continue.
- Only runs as a fallback: if the normal reader already succeeds, nothing changes.
- Works page by page, so multi-page payslips are handled.
- Requires the PyMuPDF Python library to be installed on the server.
- Touches the
payroll.management.wizardmodel and its_get_fallback_readermethod.
Business users see the benefit indirectly: payslips that previously could not be read may now be imported successfully. No new fields, buttons, reports, emails, or scheduled actions are added by this module.
Depends on
Models and fields (1)
- payroll.management.wizard · extends an existing model
Text generated by AI (DeepSeek) from reading the Odoo 16.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub
Availability by version
Reviewed: 2026-11-03Confirmation status: 1 confirmed, 8 with no information of 9 versions.
Sources · Odoo 16.0
Confirmed on 2026-11-03 in branch 16.0 of OCA/payroll.
terminal Installation and usage
No verified informationInstallation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.
Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.