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

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

Subscriure's

Get notified when there's activity on this post

This question has been flagged
Odoo13.0wkHtmltoPdfubuntu18.04
3 Respostes
8576 Vistes
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
Descartar
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
Autor

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
Autor 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
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
How to get the exit-code of a failed systemd service?
Odoo13.0 ubuntu18.04 python3.6
Avatar
0
d’ag. 20
7605
Odoo doesn't work after upgrading ubuntu from 18.04 to 20.04
odoo Odoo13.0 ubuntu18.04 ubuntu20.04
Avatar
Avatar
1
d’abr. 23
4246
Odoo 13. Don't close a wizard when Click a button Solved
Odoo13.0
Avatar
Avatar
Avatar
Avatar
4
de maig 24
14331
Permission error while user printing excel sheet report in odoo 13 Solved
Odoo13.0
Avatar
Avatar
1
d’abr. 24
4470
One2many field edited from Transient Model cannot be made empty.
Odoo13.0
Avatar
0
de nov. 23
3160
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