Skip to content

[ADD] Introduce base_report_paper_muncher module with Paper Muncher integration for PDF rendering#3651

Open
drkpkg wants to merge 1 commit into
OCA:17.0from
drkpkg:17.0
Open

[ADD] Introduce base_report_paper_muncher module with Paper Muncher integration for PDF rendering#3651
drkpkg wants to merge 1 commit into
OCA:17.0from
drkpkg:17.0

Conversation

@drkpkg

@drkpkg drkpkg commented Jun 12, 2026

Copy link
Copy Markdown

Why? WKHTMLTOPDF is deprecated and Odoo 20 is the first one to support paper muncher by default.

  • Added new module base_report_paper_muncher to integrate Paper Muncher as the PDF rendering engine for QWeb reports.
  • Created necessary files including __init__.py, __manifest__.py, and paper_muncher.py.
  • Updated requirements.txt to include the h11 dependency.
  • Added configuration XML for the report.pdf_engine system parameter.
  • Included README and configuration documentation for installation and usage.
  • Implemented tests for PDF rendering functionality and engine resolution.

@OCA-git-bot OCA-git-bot added series:17.0 mod:base_report_paper_muncher Module base_report_paper_muncher labels Jun 12, 2026
@drkpkg drkpkg changed the title [ADD] Introduce base_report_paper_muncher module with Paper Muncher i… [ADD] Introduce base_report_paper_muncher module with Paper Muncher integration for PDF rendering Jun 12, 2026
@drkpkg drkpkg force-pushed the 17.0 branch 2 times, most recently from 5ec3ffa to 80c9199 Compare June 12, 2026 04:53
…ntegration

- Add Paper Muncher PDF rendering engine for QWeb reports
- Add ir.config_parameter for report.pdf_engine (auto/wkhtmltopdf/paper-muncher)
- Add HTTP-over-pipe server integration in paper_muncher.py
- Add OCA-compliant README fragments and manifest metadata
- Add TransactionCase unit tests with mocks for CI coverage
- Add HttpCase integration tests when paper-muncher binary is available
- Fix Odoo 17 test lock handling via registry.test_lock context manager
- Cover PaperMuncherServer I/O, WSGI fallback and context manager lifecycle
- Cover remaining ir.actions.report branches for Codecov patch threshold
- Fix unit test mocks for read-only Odoo model methods and h11 protocol state

Co-authored-by: Cursor <cursoragent@cursor.com>
@drkpkg

drkpkg commented Jun 16, 2026

Copy link
Copy Markdown
Author

@rvalyi can you help to check this feature if it's ok to add it to server tools?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:base_report_paper_muncher Module base_report_paper_muncher series:17.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants