minhng92 / odoo-16-docker-compose

Set up Odoo 16 (released 2022) quickly for development/production using Docker Compose.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wkhtmltopdf

evansadji opened this issue · comments

wkhtml2pdf needs to be updated, it still doesn't display the right way... like a missing logo, box etc...
is there a way of adding appropriate wkhtmltopdf in docker ?

Hi @evansadji ,

Adding report.url with value "http://127.0.0.1:8069" to system parameters fixes the issue for me (missing logo, box).

In production server, beside adding report.url we should add web.base.url.freeze = True to prevent changing web.base.url

image

If you want to update wkhtml2pdf or install additional package to docker container, please do the following steps:

  1. Uncomment the following line in docker-compose.yml
# - ./entrypoint.sh:/entrypoint.sh
  1. Modify entrypoint.sh by adding your custom installations
  2. Recreate the docker container
docker-compose down
docker-compose up  -d