Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
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: 22.214.171.124 - - [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 -
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 platform 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.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 3/14/16, 6:02 PM|
|Seen: 470 times|
|Last updated: 3/15/16, 4:08 PM|