Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
origin: https://www.odoo.com/web#id=1850777&model=project.task&view_type=form&menu_id= and https://www.odoo.com/web#id=1850289&active_id=1850289&model=project.task&view_type=form both support tickets are about an error when trying to print the report 'delivery slip'. The error is a seg-fault in wkhtmltopdf, when it is computing the number of pages, it is trying to know ahead of render how many pages it will need but the computation uses a default viewport-size that is very small, making the computation wrong. It can either foresee more pages than it needs and the report looks perfect or not enough pages and there is a seg-fault when rendering the data without pages to render on. The fix is simple: give in the command line argument a reasonnable viewport-size so that it will *more likely* compute more pages than it needs. To do that, I changed the default of the parameters set_viewport_size to True.
- Loading branch information