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

[18.0][MIG] report_qweb_pdf_cover #985

Open
wants to merge 8 commits into
base: 18.0
Choose a base branch
from

Conversation

JasminSForgeFlow
Copy link
Contributor

Standard Migration

@ForgeFlow

@JasminSForgeFlow JasminSForgeFlow force-pushed the 18.0-mig-report_qweb_pdf_cover branch from 5840d84 to 6bad2c0 Compare March 5, 2025 10:58
Copy link
Contributor

@AaronHForgeFlow AaronHForgeFlow left a comment

Choose a reason for hiding this comment

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

Functional + code 👍

def pdf_check_pages(self, num_pages, front=True):
if num_pages < 1:
if front:
logger.error(_("Your front cover PDF does not contain any pages."))
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
logger.error(_("Your front cover PDF does not contain any pages."))
logger.error(self.env._("Your front cover PDF does not contain any pages."))

This is better performance. Can you please replace it in all '_' occurrences?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated, Thanks

@JasminSForgeFlow JasminSForgeFlow force-pushed the 18.0-mig-report_qweb_pdf_cover branch from 6bad2c0 to 4175e8b Compare March 7, 2025 04:39
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.

6 participants