Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[14.0] barcode print problem with auto-installed Pillow-9.5.0 when install bokeh==2.3.1 and mpld3 in requirements.txt #2581

Open
zzwxrchi opened this issue Aug 4, 2023 · 0 comments
Labels

Comments

@zzwxrchi
Copy link

zzwxrchi commented Aug 4, 2023

[14.0] barcode print problem with auto-installed Pillow-9.5.0 when pip3 install "bokeh==2.3.1" and mpld3 in requirements.txt

Module

web

Describe the bug

After pip3 install "bokeh==2.3.1" or mpld3 with odoo user
They will auto install dependence lib: Pillow-9.5.0
After restart sever, go to print delivery's Picking Operatios, or product barcode
Don't print barcode image, only blank block.

To Reproduce

Affected versions: 14.0

Steps to reproduce the behavior:

  1. Clean docker compose install
  2. Add extra addons "web" and add it's path in config file
  3. Create new db with demo data
  4. Login, install inventory module and create a product "A" with barcode value: 123456798
  5. Active developer mode, add Technical->System Parameters: report.url=http://127.0.0.1:8069
  6. Print barcode of product "A". (will show correct barcode image)
  7. Go in server container with odoo user
  8. pip3 install -r /mnt/extra-addons/web/requirements.txt
  9. The Pillow-9.5.0 will be installed as a dependence when install "bokeh==2.3.1" or mpld3.
  10. Exit the container and restart server
  11. Print product barcode again (will show a blank block in barcode place)
  12. Go back server container with odoo user
  13. uninstall Pillow-9.5.0 (pip3 uninstall Pillow)
  14. Exit the container and restart server
  15. Print product barcode again (will show correct barcode image)

Additional context

python vesion in container

python3 --version: Python 3.7.3
python --version: Python 2.7.16

cat docker-compose.yml

version: '3.8'
networks:
odoo14_net:
ipam:
config:
- subnet: 123.45.0.0/24

services:
db:
image: postgres:13
volumes:
- db-data:/var/lib/postgresql/data/pgdata
ports:
- 5434:5432/tcp
environment:
- POSTGRES_PASSWORD=xxx
- POSTGRES_USER=odoo
- POSTGRES_DB=postgres
- PGDATA=/var/lib/postgresql/data/pgdata
networks:
odoo14_net:
ipv4_address: 123.45.0.12
restart: always

web:
image: odoo:14.0
depends_on:
- db
ports: # use same port setting in config/odoo.conf
- "9969:8069/tcp"
- "9972:8072/tcp"
volumes:
- web-data:/var/lib/odoo
- ./config:/etc/odoo
- ./addons:/mnt/extra-addons
networks:
odoo14_net:
ipv4_address: 123.45.0.13
restart: always

volumes:
db-data:
driver: local
web-data:
driver: local

cat config/odoo.conf

[options]
addons_path = /mnt/extra-addons/web
data_dir = /var/lib/odoo
admin_passwd = xxxxx
; csv_internal_sep = ,
; db_maxconn = 64
; db_template = template1
;dbfilter = ^demo$
;list_db = true
;db_name = testdb
db_user = odoo
db_password = xxxxx
; debug_mode = False
; email_from = False
; limit_memory_hard = 2684354560
; limit_memory_soft = 2147483648
; limit_request = 8192
; limit_time_cpu = 60
; limit_time_real = 120
; list_db = True
; log_db = False
; log_handler = [':INFO']
log_level = debug
logfile = /var/log/odoo/odoo.log
longpolling_port = 8072
max_cron_threads = 1
; osv_memory_age_limit = 1.0
; osv_memory_count_limit = False
; smtp_password = False
; smtp_port = 25
; smtp_server = localhost
; smtp_ssl = False
; smtp_user = False
workers = 2
; xmlrpc = True
; xmlrpc_interface =
xmlrpc_port = 8069
; xmlrpcs = True
; xmlrpcs_interface =
xmlrpcs_port = 8071
proxy_mode = True

@zzwxrchi zzwxrchi added the bug label Aug 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant