Skip to Content
Odoo मेन्यू
  • Sign in
  • मुफ़्त में आज़माएं
  • ऐप्लिकेशन
    फ़ाइनेंस
    • अकाउंटिंग
    • इनवॉइसिंग
    • एक्सपेंस
    • स्प्रेडशीट (बीआई)
    • डॉक्यूमेंट्स
    • साइन
    सेल्स
    • सीआरएम
    • सेल्स
    • पीओएस शॉप
    • पीओएस रेस्टोरेंट
    • सब्सक्रिप्शन
    • रेंटल
    वेबसाइट
    • वेबसाइट बिल्डर
    • ई-कॉमर्स
    • ब्लॉग
    • फ़ोरम
    • लाइव चैट
    • ई-लर्निंग
    सप्लाई चेन
    • इन्वेंट्री
    • मैन्युफ़ैक्चरिंग
    • पीएलएम
    • परचेज़
    • मेंटेनेंस
    • क्वालिटी
    मानव संसाधन
    • कर्मचारी
    • रिक्रूटमेंट
    • टाइम ऑफ़
    • अप्रेज़ल
    • रेफ़रल
    • फ़्लीट
    मार्केटिंग
    • सोशल मार्केटिंग
    • ईमेल मार्केटिंग
    • एसएमएस मार्केटिंग
    • इवेंट
    • मार्केटिंग ऑटोमेशन
    • सर्वे
    सेवाएं
    • प्रोजेक्ट
    • टाइमशीट
    • फ़ील्ड सर्विस
    • हेल्पडेस्क
    • प्लानिंग
    • अपॉइंटमेंट
    प्रॉडक्टिविटी
    • डिस्कस
    • अप्रूवल
    • आईओटी
    • वीओआईपी
    • नॉलेज
    • WhatsApp
    तीसरे पक्ष के ऐप्लिकेशन Odoo स्टूडियो Odoo क्लाउड प्लेटफ़ॉर्म
  • इंडस्ट्री
    रीटेल
    • बुक स्टोर
    • क्लोदिंग स्टोर
    • फ़र्नीचर स्टोर
    • ग्रॉसरी स्टोर
    • हार्डवेयर स्टोर
    • टॉय स्टोर
    Food & Hospitality
    • बार और पब
    • रेस्टोरेंट
    • फ़ास्ट फ़ूड
    • Guest House
    • बेवरिज डिस्ट्रीब्यूटर
    • होटल
    रियल एस्टेट
    • Real Estate Agency
    • आर्किटेक्चर फ़र्म
    • कंसट्रक्शन
    • एस्टेट मैनेजमेंट
    • गार्ड्निंग
    • प्रॉपर्टी ओनर असोसिएशन
    कंसल्टिंग
    • अकाउंटिंग फ़र्म
    • Odoo पार्टनर
    • मार्केटिंग एजेंसी
    • लॉ फ़र्म
    • टैलेंट ऐक्विज़िशन
    • ऑडिट & सर्टिफ़िकेशन
    मैन्युफ़ैक्चरिंग
    • टेक्सटाइल
    • Metal
    • फ़र्नीचर
    • फ़ूड
    • Brewery
    • कॉर्पोरेट गिफ़्ट
    हेल्थ & फिटनेस
    • स्पोर्ट्स क्लब
    • आईवियर स्टोर
    • फिटनेस सेंटर
    • वेलनेस प्रैक्टिशनर
    • फॉर्मेसी
    • हेयर सैलून
    Trades
    • Handyman
    • आईटी हॉर्डवेयर और सपोर्ट
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    अन्य
    • Nonprofit Organization
    • एन्वायरमेंटल एजेंसी
    • बिलबोर्ड रेंटल
    • फ़ोटोग्राफी
    • बाइक लीजिंग
    • सॉफ़्टवेयर रीसेलर
    Browse all Industries
  • कम्यूनिटी
    सीखें
    • ट्यूटोरियल्स
    • दस्तावेज़
    • सर्टिफ़िकेशन
    • ट्रेनिंग
    • ब्लॉग
    • पॉडकास्ट
    शिक्षा को बढ़ावा दें
    • एजुकेशन प्रोग्राम
    • स्केल अप! बिजनेस गेम
    • Odoo के ऑफ़िस में आएं
    सॉफ़्टवेयर पाएं
    • डाउनलोड
    • वर्शन की तुलना करें
    • रिलीज़
    साथ मिलकर काम करें
    • Github
    • फ़ोरम
    • इवेंट
    • अनुवाद
    • पार्टनर बनें
    • Services for Partners
    • अपना अकाउंटिंग फ़र्म रजिस्टर करें
    सेवाएं पाएं
    • पार्टनर ढूंढें
    • अकाउंटेंट खोजें
    • सलाहकार की मदद लें
    • इम्प्लिमेंटेशन सेवाएं
    • कस्टमर रेफ़रेंस
    • सहायता
    • अपग्रेड
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    डेमो देखें
  • कीमत
  • सहायता

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

  • सीआरएम
  • e-Commerce
  • लेखांकन
  • इन्वेंटरी
  • PoS
  • प्रोजेक्ट
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
टैग (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
टैग (View all)
odoo accounting v14 pos v15
About this forum
Help

wkhtmltopdf dont want to do proper layout with invoice Ubuntu 18.04 odoo 13.0

Subscribe

Get notified when there's activity on this post

This question has been flagged
Odoo13.0wkHtmltoPdfubuntu18.04
3 Replies
8562 Views
Avatar
Paulius Prismantas

Hello,


wkhtmltopdf is working but working wrong. When I try to create sample invoice, it creates invoice, but with wrong layout, no fonts, colors, just text.  As a result whencustomer  pressing "pay now" with a transfer, site crashes with internal error. 


This happend after i turned on ufw.  

Tried to disabled it, but nothing changed.  


I tried:

  1. Remove wkhtmltopdf  and packages  and install again.

sudo apt-get remove --auto-remove wkhtmltox 
sudo wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.bionic_amd64.deb 
sudo dpkg -i wkhtmltox_0.12.5-1.bionic_amd64.deb
sudo apt -f install

      2.    Remove wkhtmltopdf, packages and settings  and install again.

sudo apt-get purge --auto-remove wkhtmltox 
sudo wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.bionic_amd64.deb sudo dpkg -i wkhtmltox_0.12.5-1.bionic_amd64.deb sudo apt -f install     

After instalation seems everything fine:

wkhtmltopdf 0.12.5 (with patched qt)

This is link to the sample invoice  https://www.dropbox.com/s/hidoai3kem9xaq6/Capture.JPG?dl=0 


Hope for solution.


0
Avatar
Discard
Jérémy Kersten (jke)

are you sure about the configuration of your base url?

Seems like you don't have your assets loaded.

Do you see the requests in your logs ?

Paulius Prismantas
Author

1. Not sure, any links where to look for right info for configuration?

this is log file hope this is usefull

2020-04-10 10:06:51,901 922 INFO ? odoo: Odoo version 13.0-20200410

2020-04-10 10:06:51,902 922 INFO ? odoo: Using configuration file at /etc/odoo/odoo.conf

2020-04-10 10:06:51,902 922 INFO ? odoo: addons paths: ['/usr/lib/python3/dist-packages/odoo/addons', '/var/lib/odoo/.local/share/Odoo/addons/13.0']

2020-04-10 10:06:51,902 922 INFO ? odoo: database: odoo@default:default

2020-04-10 10:06:51,991 922 INFO ? odoo.addons.base.models.ir_actions_report: Will use the Wkhtmltopdf binary at /usr/local/bin/wkhtmltopdf

2020-04-10 10:06:52,063 922 WARNING ? odoo.addons.base.models.res_currency: The num2words python library is not installed, amount-to-text features won't be fully available.

2020-04-10 10:06:52,084 922 INFO ? odoo.service.server: HTTP service (werkzeug) running on ipsy.l.dedikuoti.lt:8069

2020-04-10 10:06:52,544 922 INFO Alfametal odoo.modules.loading: loading 1 modules...

2020-04-10 10:06:52,557 922 INFO ? odoo.http: HTTP Configuring static files

2020-04-10 10:06:52,560 922 INFO Alfametal odoo.modules.loading: 1 modules loaded in 0.02s, 0 queries

2020-04-10 10:06:52,606 922 INFO Alfametal odoo.modules.loading: loading 131 modules...

2020-04-10 10:06:54,034 922 WARNING Alfametal odoo.models: The model report.accounting_pdf_reports.report_partnerledger has no _description

2020-04-10 10:06:54,035 922 WARNING Alfametal odoo.models: The model report.accounting_pdf_reports.report_general_ledger has no _description

2020-04-10 10:06:54,035 922 WARNING Alfametal odoo.models: The model report.accounting_pdf_reports.report_trialbalance has no _description

2020-04-10 10:06:54,035 922 WARNING Alfametal odoo.models: The model report.accounting_pdf_reports.report_tax has no _description

2020-04-10 10:06:54,035 922 WARNING Alfametal odoo.models: The model report.accounting_pdf_reports.report_agedpartnerbalance has no _description

2020-04-10 10:06:54,035 922 WARNING Alfametal odoo.models: The model report.accounting_pdf_reports.report_journal has no _description

2020-04-10 10:06:54,035 922 WARNING Alfametal odoo.models: The model report.accounting_pdf_reports.report_financial has no _description

2020-04-10 10:06:54,460 922 INFO ? werkzeug: 84.15.189.8 - - [10/Apr/2020 10:06:54] "GET /web/static/src/img/spin.png HTTP/1.1" 304 - - - -

2020-04-10 10:06:55,162 922 INFO Alfametal odoo.modules.loading: 131 modules loaded in 2.55s, 0 queries

2020-04-10 10:06:55,778 922 WARNING Alfametal odoo.fields: Field crossovered.budget.user_id: parameter 'oldname' is not longer supported; use an upgrade script instead.

2020-04-10 10:06:56,009 922 INFO Alfametal odoo.modules.loading: Modules loaded.

2020-04-10 10:06:56,022 922 INFO Alfametal odoo.addons.base.models.ir_http: Generating routing map for key 1

2020-04-10 10:06:56,031 922 INFO Alfametal odoo.addons.base.models.ir_http: Generating routing map for key 1

2020-04-10 10:06:56,236 922 INFO Alfametal werkzeug: 84.15.189.8 - - [10/Apr/2020 10:06:56] "POST /base_setup/data HTTP/1.1" 200 - 9 0.010 3.668

2020-04-10 10:06:56,239 922 INFO Alfametal werkzeug: 84.15.189.8 - - [10/Apr/2020 10:06:56] "POST /base_setup/demo_active HTTP/1.1" 200 - 20 0.035 3.677

2020-04-10 10:06:56,796 922 INFO Alfametal werkzeug: 84.15.189.8 - - [10/Apr/2020 10:06:56] "POST /calendar/notify HTTP/1.1" 200 - 3 0.003 0.005

Avatar
Paulius Prismantas
Author Best Answer

Solved the problem.  

Main problem was with header and footer it fixed then i went to:

odoo, turned on developer mode->search bar-> system parameters  -> create new -> name of the parameter:  report.url   and description is  your ip address  : and port. (usualy 8069), or just use this : http://127.0.0.1:8069    that should help.  Thanks.

link to answer :     https://stackoverflow.com/questions/47055149/why-my-pdf-report-is-not-taking-the-css-styles-well-in-odoo 

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
How to get the exit-code of a failed systemd service?
Odoo13.0 ubuntu18.04 python3.6
Avatar
0
अग॰ 20
7589
Odoo doesn't work after upgrading ubuntu from 18.04 to 20.04
odoo Odoo13.0 ubuntu18.04 ubuntu20.04
Avatar
Avatar
1
अप्रैल 23
4230
Odoo 13. Don't close a wizard when Click a button Solved
Odoo13.0
Avatar
Avatar
Avatar
Avatar
4
मई 24
14312
Permission error while user printing excel sheet report in odoo 13 Solved
Odoo13.0
Avatar
Avatar
1
अप्रैल 24
4468
One2many field edited from Transient Model cannot be made empty.
Odoo13.0
Avatar
0
नव॰ 23
3151
कम्यूनिटी
  • ट्यूटोरियल्स
  • दस्तावेज़
  • फ़ोरम
ओपन सोर्स
  • डाउनलोड
  • Github
  • रनबॉट
  • अनुवाद
सेवाएं
  • Odoo.sh Hosting
  • सहायता
  • अपग्रेड
  • कस्टम डेवलपमेंट्स
  • शिक्षा
  • अकाउंटेंट खोजें
  • पार्टनर ढूंढें
  • पार्टनर बनें
हमारे बारे में
  • हमारी कंपनी
  • ब्रांड ऐसेट
  • संपर्क करें
  • नौकरियां
  • इवेंट
  • पॉडकास्ट
  • ब्लॉग
  • ग्राहक
  • लीगल • गोपनीयता
  • सुरक्षा
الْعَرَبيّة 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, बिज़नेस से जुड़े ऐप्लिकेशन का एक कलेक्शन है जो ओपन सोर्स पर आधारित है. इसमें आपकी कंपनी की हर ज़रूरत के लिए ऐप्लिकेशन हैं. जैसे, सीआरएम, ई-कॉमर्स, अकाउंटिंग, इन्वेंट्री, पॉइंट ऑफ़ सेल, प्रोजेक्ट मैनेजमेंट वगैरह.

Odoo की सबसे बड़ी खासियत है कि यह इस्तेमाल करने में बहुत आसान है और यह पूरी तरह से इंटिग्रेट किया हुआ है.

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