Skip to Content
Odoo Menú
  • Registra entrada
  • Prova-ho gratis
  • Aplicacions
    Finances
    • Comptabilitat
    • Facturació
    • Despeses
    • Full de càlcul (IA)
    • Documents
    • Signatura
    Vendes
    • CRM
    • Vendes
    • Punt de venda per a botigues
    • Punt de venda per a restaurants
    • Subscripcions
    • Lloguer
    Imatges de llocs web
    • Creació de llocs web
    • Comerç electrònic
    • Blog
    • Fòrum
    • Xat en directe
    • Aprenentatge en línia
    Cadena de subministrament
    • Inventari
    • Fabricació
    • PLM
    • Compres
    • Manteniment
    • Qualitat
    Recursos humans
    • Empleats
    • Reclutament
    • Absències
    • Avaluacions
    • Recomanacions
    • Flota
    Màrqueting
    • Màrqueting Social
    • Màrqueting per correu electrònic
    • Màrqueting per SMS
    • Esdeveniments
    • Automatització del màrqueting
    • Enquestes
    Serveis
    • Projectes
    • Fulls d'hores
    • Servei de camp
    • Suport
    • Planificació
    • Cites
    Productivitat
    • Converses
    • Validacions
    • IoT
    • VoIP
    • Coneixements
    • WhatsApp
    Aplicacions de tercers Odoo Studio Plataforma d'Odoo al núvol
  • Sectors
    Comerç al detall
    • Llibreria
    • Botiga de roba
    • Botiga de mobles
    • Botiga d'ultramarins
    • Ferreteria
    • Botiga de joguines
    Food & Hospitality
    • Bar i pub
    • Restaurant
    • Menjar ràpid
    • Guest House
    • Distribuïdor de begudes
    • Hotel
    Immobiliari
    • Agència immobiliària
    • Estudi d'arquitectura
    • Construcció
    • Gestió immobiliària
    • Jardineria
    • Associació de propietaris de béns immobles
    Consultoria
    • Empresa comptable
    • Partner d'Odoo
    • Agència de màrqueting
    • Bufet d'advocats
    • Captació de talent
    • Auditoria i certificació
    Fabricació
    • Textile
    • Metal
    • Mobles
    • Menjar
    • Brewery
    • Regals corporatius
    Salut i fitness
    • Club d'esport
    • Òptica
    • Centre de fitness
    • Especialistes en benestar
    • Farmàcia
    • Perruqueria
    Trades
    • Servei de manteniment
    • Hardware i suport informàtic
    • Sistemes d'energia solar
    • Shoe Maker
    • Serveis de neteja
    • Instal·lacions HVAC
    Altres
    • Nonprofit Organization
    • Agència del medi ambient
    • Lloguer de panells publicitaris
    • Fotografia
    • Lloguer de bicicletes
    • Distribuïdors de programari
    Browse all Industries
  • Comunitat
    Aprèn
    • Tutorials
    • Documentació
    • Certificacions
    • Formació
    • Blog
    • Pòdcast
    Potenciar l'educació
    • Programa educatiu
    • Scale-Up! El joc empresarial
    • Visita Odoo
    Obtindre el programari
    • Descarregar
    • Comparar edicions
    • Novetats de les versions
    Col·laborar
    • GitHub
    • Fòrum
    • Esdeveniments
    • Traduccions
    • Converteix-te en partner
    • Services for Partners
    • Registra la teva empresa comptable
    Obtindre els serveis
    • Troba un partner
    • Troba un comptable
    • Contacta amb un expert
    • Serveis d'implementació
    • Referències del client
    • Suport
    • Actualitzacions
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Programar una demo
  • Preus
  • Ajuda

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Comptabilitat
  • Inventari
  • PoS
  • Projectes
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
Ajuda

Odoo 16 - Download invoice preview doesn't work

Subscriure's

Get notified when there's activity on this post

This question has been flagged
invoice
3 Respostes
3861 Vistes
Avatar
Hugo Rodríguez

When I am in the view of the invoice shown in the image and I click on download, the browser is continuously processing (the loading circle of the tab rotates) and after about 20-30 seconds the nginx error of the image is displayed.

I have checked the logs but no logs are being saved in the /var/log/odoo/odoo.log file

I tried installing wkhtmltopdf, but the problem persists. What else could I try?

0
Avatar
Descartar
Hugo Rodríguez
Autor

Hi, I solved the problem.

The odoo.conf file had only 1 worker defined.
Print / download invoice requires 2 workers

Waleed Ali Mohsen

Sound good.
If you want to user workers you need to configure it correctly:
number of workers = (CPU Core * 2) + 1
So if you have server with 4 CPU, 8 Thread:
(4 * 2) + 1 = 9 <- theoretical maximal number of worker

You can refer to Odoo deployment:
https://www.odoo.com/documentation/16.0/administration/install/deploy.html#id5

Avatar
Lawbor
Best Answer

Do you use any other reverse proxy besides Nginx?

0
Avatar
Descartar
Lawbor

Try running wkhtmltopdf manually from the command line to see if it works outside of Odoo.
This post was last modified: 10-04-2025, 05:48 am by https://spacewaves.io

Avatar
Hugo Rodríguez
Autor Best Answer

Sorry

I just saw that I hadn't uploaded the images, and I can't do that because of karma. Proxy mode is set to true, I'm checking console. When I press download i get a 504 Gateway Time-out from nginx

0
Avatar
Descartar
Waleed Ali Mohsen

What are you getting in the console?
You need to check the nginx error log as well.

Hugo Rodríguez
Autor

I'm getting this in the console

warning: Some modules could not be started
boot.js:327 Missing dependencies: Array(19)0: "@web/core/assets"1: "@web/core/browser/feature_detection"2: "@web/core/ui/ui_service"3: "@web/core/l10n/translation"4: "@web/core/utils/render"5: "@web/core/browser/browser"6: "@web/core/registry"7: "@web/core/utils/concurrency"8: "@web/core/utils/ui"9: "@web/core/transition"10: "@web/core/l10n/localization"11: "@web/core/utils/strings"12: "web.public_env"13: "web.public.lazyloader"14: "@web/legacy/utils"15: "web.OwlCompatibility"16: "@web/env"17: "@web/core/main_components_container"18: "@web/core/network/rpc_service"length: 19[[Prototype]]: Array(0)
boot.js:348 Non loaded modules: Array(61)0: "web.assets.qweb"1: "@web/legacy/js/libs/pdfjs"2: "web.AbstractService"3: "web.AbstractStorageService"4: "web.ajax"5: "web.BrowserDetection"6: "web.Bus"7: "web.Dialog"8: "web.OwlDialog"9: "web.dom"10: "web.local_storage"11: "web.mixins"12: "web.QWeb"13: "web.RamStorage"14: "web.Registry"15: "web.rpc"16: "web.ServiceProviderMixin"17: "web.ServicesMixin"18: "web.Session"19: "web.sessionStorage"20: "web.time"21: "web.translation"22: "web.utils"23: "web.Widget"24: "web.AjaxService"25: "web.config"26: "web.core"27: "web.LocalStorageService"28: "web.SessionStorageService"29: "web.commonEnv"30: "web.name_and_signature"31: "web/static/src/js/core/smooth_scroll_on_drag.js"32: "web.Colorpicker"33: "web.TranslationDialog"34: "@bus/im_status_service"35: "@bus/multi_tab_service"36: "@bus/services/assets_watchdog_service"37: "@bus/services/bus_service"38: "@bus/services/legacy/make_bus_service_to_legacy_env"39: "@bus/services/legacy/make_multi_tab_to_legacy_env"40: "@bus/services/presence_service"41: "web_tour.RunningTourActionHelper"42: "web_tour.Tip"43: "web_tour.TourManager"44: "web_tour.tour"45: "web_tour.TourStepUtils"46: "web_tour.utils"47: "web_editor.ace"48: "@web_editor/js/common/grid_layout_utils"49: "web_editor.utils"50: "@sign/js/common/PDFIframe"51: "@sign/js/common/document"52: "@sign/js/common/document_signable"53: "web.assets_common.bundle.xml"54: "web.session"55: "@web/legacy/js/public/public_root"56: "web.public.root"57: "@web/legacy/js/public/public_root_instance"58: "root.widget"59: "@web/legacy/js/public/public_widget"60: "web.public.widget"length: 61[[Prototype]]: Array(0)
owl.js:5605 Owl is running in 'dev' mode.

This is not suitable for production use.
See https://github.com/odoo/owl/blob/ba20267/doc/reference/app.md#configuration for more information.
tour_manager.js:53 Tour Manager is ready. running_tour=null

Avatar
Waleed Ali Mohsen
Best Answer

Hi,

You are using nginx so Make sure that the proxy_mode = True in your Odoo config file. 

If you opened the inspect in your browser and check console, you will find more details about the error.

Thanks

0
Avatar
Descartar
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Registrar-se
Related Posts Respostes Vistes Activitat
change between 2 Invoice formats Solved
invoice
Avatar
Avatar
1
de jul. 25
1666
Hello, how can I change the size of the logo and the invoice? Solved
invoice
Avatar
Avatar
Avatar
2
de jul. 25
1993
Validation Error. You will need to clear the Journal Entry's Number to proceed
invoice
Avatar
Avatar
1
de jul. 25
2983
Restricting Salesperson Access to Customer Invoice Details
invoice
Avatar
Avatar
Avatar
3
d’abr. 25
2879
Delete PDF Invoice Solved
invoice
Avatar
1
de març 25
2562
Community
  • Tutorials
  • Documentació
  • Fòrum
Codi obert
  • Descarregar
  • GitHub
  • Runbot
  • Traduccions
Serveis
  • Allotjament a Odoo.sh
  • Suport
  • Actualització
  • Desenvolupaments personalitzats
  • Educació
  • Troba un comptable
  • Troba un partner
  • Converteix-te en partner
Sobre nosaltres
  • La nostra empresa
  • Actius de marca
  • Contacta amb nosaltres
  • Llocs de treball
  • Esdeveniments
  • Pòdcast
  • Blog
  • Clients
  • Informació legal • Privacitat
  • Seguretat
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo és un conjunt d'aplicacions empresarials de codi obert que cobreix totes les necessitats de la teva empresa: CRM, comerç electrònic, comptabilitat, inventari, punt de venda, gestió de projectes, etc.

La proposta única de valor d'Odoo és ser molt fàcil d'utilitzar i estar totalment integrat, ambdues alhora.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now