Odoo Help

0
4 Answers
0
Magen
23‏/1‏/2019 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!

0
Avatar

Yenthe Van Ginneken

--Yenthe Van Ginneken--
15061
| 8 8 10
بلجيكا
--Yenthe Van Ginneken--

My Odoo blog: http://www.odoo.yenthevg.com/

My Twitter: https://twitter.com/Yenthe666


Yenthe Van Ginneken
12‏/1‏/2019 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?

Regards,
Yenthe

2 Comments
Magen
13‏/1‏/2019 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

Magen
13‏/1‏/2019 6:36 ص

it is the <script type="text/javascript" src="http://127.0.0.1/web/content/15320-fb21d4c/web.report_assets_common.js"></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

Ask a Question
Writer
Keep Informed
1 follower(s)
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