Odoo Ayuda


4 Answers
23/1/19 5:11

The problem was that the view report_minimal was an old version and there was a reference to unexisting js function. Updating the code (apt install odoo) does not refresh the views. I had to upgrade the web module manually and now the problem is gone.

Thank you Yenthe for responding!


Yenthe Van Ginneken

--Yenthe Van Ginneken--
| 9 9 12
Turnhout, Bélgica
--Yenthe Van Ginneken--

My Odoo training platform: https://www.oocademy.com
My Odoo blog: http://www.odoo.yenthevg.com/
My Twitter: https://twitter.com/Yenthe666

Yenthe Van Ginneken
12/1/19 3:43

Hi Magen,

Yes, Odoo is able to print multiple reports at once after selecting them from the tree view out of the box. I've just double checked it and it works fine on the official Odoo instances (at runbot.odoo.com).
Are you sure that you're running the right Wkhtmltopdf version, 0.12.5, as suggested in the wiki at https://github.com/odoo/odoo/wiki/Wkhtmltopdf#version-status ? Did you update your Odoo to the latest source code?


13/1/19 5:46

I upgraded to 0.12.5 with same results. Upgraded odoo - no difference.

I see that in ir_actions_report.py line 416 passes the arguments to wkhtmltopdf

it generates 1 header html, 1 footer html and x bodies (according to the selected records) Buth then wkhtmltopdf generates only one page pdf.

I tried playing with the arguments ignoring header or footer but same results - only 1 page pdf generated

13/1/19 6:36

it is the <script type="text/javascript" src=""></script> inside the body of the report that causes the problem

Without it works fine. Even if it is an empty file it doesn't work unless I remove the script from the html before passing it on to wkhtmltopdf

This file is being dynamically generated from several js scripts added to web.report_assets_common

Realizar una pregunta
Keep Informed
1 seguidor(es)
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.

Odoo Training Center

Access to our eLearning platform and experience all Odoo Apps through learning videos, use cases and quizzes.

Test it now