itpp-labs / odoo-development

Usefull information for odoo developers. Published at odoo-development.readthedocs.io
https://odoo-development.readthedocs.io/
GNU Affero General Public License v3.0
139 stars 171 forks source link

add a note about minimal workers and wkhtmltopdf #216

Closed zeroheure closed 4 years ago

zeroheure commented 4 years ago

May need to be rewrited. Problem is that you can't use wkhtmltopdf with workers = 1, need at least 2 workers.

yelizariev commented 4 years ago

Do you know any link to confirm it?

zeroheure commented 4 years ago

Have a look in these files (from 12 and 13) : https://github.com/odoo/odoo/blob/12.0/odoo/addons/base/models/ir_actions_report.py https://github.com/odoo/odoo/blob/12.0/addons/web/static/src/js/chrome/action_manager_report.js

Look for the string "you need to start Odoo with at least two workers to print a pdf"

yelizariev commented 4 years ago

Could you also comment about CPU num. Does it really matter how much CPUs the server has?

yelizariev commented 4 years ago

I propose to delete reference to CPU: https://github.com/it-projects-llc/odoo-development/pull/219 Let me know what do you think about it