跳至内容
菜单
此问题已终结

Hello everyone im a junior odoo dev and ive worked on a custom module that can sent a custom report via mail using cron job and the report can be pdf or exel or the report data will be inside the mail anyways the issue i have is with the pdf report because when testing and triggering manually the cron the pdf report got recieved normal with style but when the cron automaticlly get triggered the report i got is bland i checked the log to see what is going on i found out that when manually triggering the cron there is some css files with code 200 wich means that odoo is using those files for styling the report and he found those files since the code is 200 but when the cron triggered automaticcly the code for those css files is 404 wich means he s not finding em i asked gpt i get as an aswear that when triggering the cron manually we're allready loged in odoo instance so we got acces to files etc (what i think) but when automatic cron happend we're not loged in so we can't use the files we need so if anyone kan hellp with that problem leave a responce .
Thanks 😊

形象
丢弃
相关帖文 回复 查看 活动
4
3月 24
13741
0
6月 25
575
0
8月 21
0
0
8月 21
0
3
1月 20
7013