[17.0] Problem with PDF Generation in Scheduled Tasks
Opened this issue · 0 comments
#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.