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

[17.0] Problem with PDF Generation in Scheduled Tasks #1129

Open
MonsteraCompany opened this issue Sep 22, 2024 · 0 comments
Open

[17.0] Problem with PDF Generation in Scheduled Tasks #1129

MonsteraCompany opened this issue Sep 22, 2024 · 0 comments
Labels

Comments

@MonsteraCompany
Copy link

#1124 # Module
subscription_oca

Describe the bug

I encountered an issue where invoice PDFs generated by the scheduled task in the subscription_oca module do not include proper formatting (e.g., no layout). However, when I manually run the task through the "Run Manually" button in Odoo, the PDF is generated correctly with the expected format and layout.

It seems that the context or environment used during the scheduled execution (via cron) is missing some critical information that affects the PDF generation process. This issue may be related to the way the task is handled in the background, possibly missing user context, language settings, or company details, which are normally present when running the task manually.

Any help or guidance on how to resolve this discrepancy would be appreciated.

@MonsteraCompany MonsteraCompany changed the title Problem with PDF Generation in Scheduled Tasks [17.0] Problem with PDF Generation in Scheduled Tasks Sep 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant