Odoo Help


This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Automated PDF Invoice Email has no CSS style or headers

on 3/14/16, 6:02 PM 376 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: - - [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: - - [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: - - [14/Mar/2016 21:30:17] "POST /web/action/load HTTP/1.1" 200 -

2016-03-14 21:30:17,843 6244 INFO ? werkzeug: - - [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: - - [14/Mar/2016 21:30:17] "GET /web/content/174914-4ca10b2/report.assets_pdf.0.css HTTP/1.1" 404 -

On 3/15/16, 4:08 PM

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.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


Asked: 3/14/16, 6:02 PM
Seen: 376 times
Last updated: 3/15/16, 4:08 PM