Skip to Content
Menu
This question has been flagged
1 Reply
2808 Views

I'm running Odoo V9.0. I've set things up to import orders into odoo and then create PO's automatically to have product drop shipped. I've written a script that automates the process. I also have an automated process that emails the purchase order out when its updated and a certain variable is set. The problem I'm having is that when the Purchase Order Invoice report is generated automatically through the process it has no css style. Any other time I generate the report the style is there. Like if I go through purchase order -> print or purchase order -> send email the report is generated with the css and headers. I've tried setting report.url to several different things to no avail. I've also downgraded to wkhtmltopdf 12.1 as suggested elsewhere, but the problem still persists.


I get the following in my log when it creates the PDF:

2016-03-14 21:30:17,607 6244 INFO ? werkzeug: 127.0.0.1 - - [14/Mar/2016 21:30:17] "GET /web/content/174914-4ca10b2/report.assets_pdf.0.css HTTP/1.1" 404 -

2016-03-14 21:30:17,611 6244 INFO ? werkzeug: 127.0.0.1 - - [14/Mar/2016 21:30:17] "GET /web/content/174909-f8e3a3e/report.assets_common.0.css HTTP/1.1" 404 -

2016-03-14 21:30:17,722 6244 INFO odoo werkzeug: 66.173.106.238 - - [14/Mar/2016 21:30:17] "POST /web/action/load HTTP/1.1" 200 -

2016-03-14 21:30:17,843 6244 INFO ? werkzeug: 127.0.0.1 - - [14/Mar/2016 21:30:17] "GET /web/content/174909-f8e3a3e/report.assets_common.0.css HTTP/1.1" 404 -

2016-03-14 21:30:17,847 6244 INFO ? werkzeug: 127.0.0.1 - - [14/Mar/2016 21:30:17] "GET /web/content/174914-4ca10b2/report.assets_pdf.0.css HTTP/1.1" 404 -

Avatar
Discard
Author Best Answer

The issue ended up being that I had two databases. The one I was using and the demo database. I ended up deleting the demo database and everything worked fine after that.

Avatar
Discard