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

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
8560 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
Aug 20
7587
Odoo doesn't work after upgrading ubuntu from 18.04 to 20.04
odoo Odoo13.0 ubuntu18.04 ubuntu20.04
Avatar
Avatar
1
Apr 23
4229
Odoo 13. Don't close a wizard when Click a button Solved
Odoo13.0
Avatar
Avatar
Avatar
Avatar
4
May 24
14305
Permission error while user printing excel sheet report in odoo 13 Solved
Odoo13.0
Avatar
Avatar
1
Apr 24
4466
One2many field edited from Transient Model cannot be made empty.
Odoo13.0
Avatar
0
Nov 23
3151
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