Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help

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

  • CRM
  • e-Commerce
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

Odoo 16 - Download invoice preview doesn't work

Subscribe

Get notified when there's activity on this post

This question has been flagged
invoice
3 Replies
3884 Views
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
Discard
Hugo Rodríguez
Author

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
Discard
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
Author 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
Discard
Waleed Ali Mohsen

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

Hugo Rodríguez
Author

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
Discard
Enjoying the discussion? Don't just read, join in!

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

Sign up
Related Posts Replies Views Activity
change between 2 Invoice formats Solved
invoice
Avatar
Avatar
1
Jul 25
1717
Hello, how can I change the size of the logo and the invoice? Solved
invoice
Avatar
Avatar
Avatar
2
Jul 25
2053
Validation Error. You will need to clear the Journal Entry's Number to proceed
invoice
Avatar
Avatar
1
Jul 25
3009
Restricting Salesperson Access to Customer Invoice Details
invoice
Avatar
Avatar
Avatar
3
Apr 25
2912
Delete PDF Invoice Solved
invoice
Avatar
1
Mar 25
2613
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة 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 is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

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