Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes for 17.0 mig report qweb pdf watermark #7

Merged
merged 2 commits into from
Aug 13, 2024

Conversation

dz0
Copy link

@dz0 dz0 commented Aug 9, 2024

There were 2 non-apparent issues

@dz0 dz0 requested a review from oerp-odoo August 9, 2024 08:58
@dz0 dz0 force-pushed the 17.0-mig-report_qweb_pdf_watermark branch from 6a8cae3 to 0dda145 Compare August 9, 2024 09:03
report_qweb_pdf_watermark/models/report.py Outdated Show resolved Hide resolved
stream.seek(0, os.SEEK_SET)
header_byte = stream.read(5)
if header_byte != b"%PDF-":
# the file is not PDF -- probably this is image (we'll check bellow)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this module supposed to handle images as well? Cause from name I would assume it only handles pdfs:)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes,

report_qweb_pdf_watermark/models/report.py Outdated Show resolved Hide resolved
@dz0 dz0 requested a review from oerp-odoo August 12, 2024 07:44
@dz0 dz0 force-pushed the 17.0-mig-report_qweb_pdf_watermark branch from fbb901b to 4a7f469 Compare August 13, 2024 07:32
@dz0 dz0 merged commit 0d73852 into 17.0-versada Aug 13, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants