Ir al contenido
Odoo Menú
  • Iniciar sesión
  • Pruébalo gratis
  • Aplicaciones
    Finanzas
    • Contabilidad
    • Facturación
    • Gastos
    • Hoja de cálculo (BI)
    • Documentos
    • Firma electrónica
    Ventas
    • CRM
    • Ventas
    • PdV para tiendas
    • PdV para restaurantes
    • Suscripciones
    • Alquiler
    Sitios web
    • Creador de sitios web
    • Comercio electrónico
    • Blog
    • Foro
    • Chat en vivo
    • eLearning
    Cadena de suministro
    • Inventario
    • Manufactura
    • PLM
    • Compras
    • Mantenimiento
    • Calidad
    Recursos humanos
    • Empleados
    • Reclutamiento
    • Vacaciones
    • Evaluaciones
    • Referencias
    • Flotilla
    Marketing
    • Redes sociales
    • Marketing por correo
    • Marketing por SMS
    • Eventos
    • Automatización de marketing
    • Encuestas
    Servicios
    • Proyectos
    • Registro de horas
    • Servicio externo
    • Soporte al cliente
    • Planeación
    • Citas
    Productividad
    • Conversaciones
    • Aprobaciones
    • IoT
    • VoIP
    • Artículos
    • WhatsApp
    Aplicaciones externas Studio de Odoo Plataforma de Odoo en la nube
  • Industrias
    Venta minorista
    • Librería
    • Tienda de ropa
    • Mueblería
    • Tienda de abarrotes
    • Ferretería
    • Juguetería
    Alimentos y hospitalidad
    • Bar y pub
    • Restaurante
    • Comida rápida
    • Casa de huéspedes
    • Distribuidora de bebidas
    • Hotel
    Bienes inmuebles
    • Agencia inmobiliaria
    • Estudio de arquitectura
    • Construcción
    • Gestión de bienes inmuebles
    • Jardinería
    • Asociación de propietarios
    Consultoría
    • Firma contable
    • Partner de Odoo
    • Agencia de marketing
    • Bufete de abogados
    • Adquisición de talentos
    • Auditorías y certificaciones
    Manufactura
    • Textil
    • Metal
    • Muebles
    • Comida
    • Cervecería
    • Regalos corporativos
    Salud y ejercicio
    • Club deportivo
    • Óptica
    • Gimnasio
    • Especialistas en bienestar
    • Farmacia
    • Peluquería
    Trades
    • Personal de mantenimiento
    • Hardware y soporte de TI
    • Sistemas de energía solar
    • Zapateros y fabricantes de calzado
    • Servicios de limpieza
    • Servicios de calefacción, ventilación y aire acondicionado
    Otros
    • Organización sin fines de lucro
    • Agencia para la protección del medio ambiente
    • Alquiler de anuncios publicitarios
    • Fotografía
    • Alquiler de bicicletas
    • Distribuidor de software
    Descubre todas las industrias
  • Odoo Community
    Aprende
    • Tutoriales
    • Documentación
    • Certificaciones
    • Capacitación
    • Blog
    • Podcast
    Fortalece la educación
    • Programa educativo
    • Scale Up! El juego empresarial
    • Visita Odoo
    Obtén el software
    • Descargar
    • Compara ediciones
    • Versiones
    Colabora
    • GitHub
    • Foro
    • Eventos
    • Traducciones
    • Conviértete en partner
    • Servicios para partners
    • Registra tu firma contable
    Obtén servicios
    • Encuentra un partner
    • Encuentra un contador
    • Contacta a un consultor
    • Servicios de implementación
    • Referencias de clientes
    • Soporte
    • Actualizaciones
    GitHub YouTube Twitter LinkedIn Instagram Facebook Spotify
    +1 (650) 691-3277
    Solicita una demostración
  • Precios
  • Ayuda

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

  • CRM
  • e-Commerce
  • Contabilidad
  • Inventario
  • PoS
  • Proyectos
  • MRP
All apps
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Ayuda

Problem with QWeb reports rendering to PDF, HTML version OK

Suscribirse

Reciba una notificación cuando haya actividad en esta publicación

Se marcó esta pregunta
8 Respuestas
50885 Vistas
Avatar
Chris Zajaczkowski

I am testing a fresh install of Odoo 8.0 on Ubuntu 14.04 - all works OK apart from PDF report which are formatted incorrectly, missing graphics (sort of compressed text only), if switched to HTML reports works fine. WKHTMLTOPDF works fine in generating pdf from external pages. I am not sure how to debug this problem.


Anybody had a similar experience?

0
Avatar
Descartar
Avatar
Yenthe Van Ginneken (Mainframe Monkey)
Mejor respuesta

Chris, the problem is caused by your internal network setup. Its simply because Odoo cannot access your CSS and there for the graphics are not added and it takes longer to load the PDF. The solution however is very easy:

1. Go to settings > Technical > Parameters > System parameters
2. Make a new paramater

  • Name: web.base.url.freeze
  • Value: True

3. Edit the parameter web base.url and place the ip on http://0.0.0.0:8069
4. Refresh and everything is fixed.

You can read more about this in my original topic which is caused by the same problem as you: https://www.odoo.com/forum/help-1/question/why-does-my-odoo-wait-for-more-than-2-minutes-after-clicking-on-pay-now-ecommerce-63715

Note: if you ever want to use the mass mailing module you'll also need to add some patches and a second parameter, which you can find an answer for here: https://www.odoo.com/forum/help-1/question/mass-mailing-campaigns-do-not-track-opened-and-replied-e-mails-64705 or otherwise mass mailings won't work correct either.

16
Avatar
Descartar
Chris Zajaczkowski
Autor

Thanks a lot - works like magic!

Yenthe Van Ginneken (Mainframe Monkey)

No problem! If my answer helped you please consider to accept / upvote it! It'll help others to find good working answers and it gives me some karma too. :)

SHIV SHANKAR

Saved my day!! Thanks man!! :)

sneha

thank you .. the solution which you provide is really helpful. my issue is resolved by setting up the system parameters

Avatar
CARLOS ALBERTO GARCIA BRIZUELA
Mejor respuesta

I was having a similar issue and the answer of Yenthe put me in the right path:

1. Go to Settings > Technical > Parameters > System parameters
2. Check the url and ports Values of all parameters.

My problem was in the web.base.url.report parameter that having the value http://0.0.0.0:8080 when my odoo instance run on port 8069. Changing that for the right port works like charm for me and the pdf render correctly.

I hope this help and solve your problem too.

 

3
Avatar
Descartar
Avatar
Eric CATTELIN
Mejor respuesta

Hello,

I've the same problem with odoo 9. This solution don't work for me.

Have you got a solution ?

i use debian jessie, odoo 9, wkhtmltopdf 12.1. I'm behind a reverse proxy.

Thanks for your help


1
Avatar
Descartar
Ubaid ur Rehman

I have same problem PDF file is download but it have 0 byte and unable to open.

Avatar
Rafael Krupinski
Mejor respuesta

Same issue in odoo 17. neither localhost nor 0.0.0.0 works.


edit: in my case it wasn't network issue, rather it was styling problem. the pdf engine has its limitations, compared to the html preview.

0
Avatar
Descartar
Avatar
adham.elsabbagh@gmail.com
Mejor respuesta

i had the same issue with v16 and i solved it with replacing the value of report.url to  http://localhost:8096/

0
Avatar
Descartar
Avatar
arjuma ahmad
Mejor respuesta

I have just Edit the parameter web base.url and place the my localhost port on http://0.0.0.0:8089, Refresh  the page and its start working

0
Avatar
Descartar
Avatar
Arsenty Karamurza
Mejor respuesta

Experiencing the same issue with odoo 9 on debian jessie using wkhtmltopdf 12.1 from http://nightly.odoo.com/extra/ (http://nightly.odoo.com/extra/wkhtmltox-0.12.1.2_linux-jessie-amd64.deb)

Tried specifying report.url to with no luck unfortunately.

Please help

0
Avatar
Descartar
Avatar
Phillip
Mejor respuesta

I have also encountered this issue. An image in a report appearing perfectly fine in my browser as html but not as a pdf. In my scenario it turned out to be internal vs external name resolution. Adding http://0.0.0.0:8069 to web.base.url did in fact get my default logo to appear which gave me a clue that I was experiencing a name resolution issue. Be sure that your odoo server can in fact resolve it's external url and find itself or wkhtmltopdf will have issues fetching resources beyond the html passed to it by odoo.

0
Avatar
Descartar
¿Le interesa esta conversación? ¡Participe en ella!

Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.

Registrarse
Comunidad
  • Tutoriales
  • Documentación
  • Foro
Código abierto
  • Descargar
  • GitHub
  • Runbot
  • Traducciones
Servicios
  • Alojamiento en Odoo.sh
  • Soporte
  • Actualizaciones del software
  • Desarrollos personalizados
  • Educación
  • Encuentra un contador
  • Encuentra un partner
  • Conviértete en partner
Sobre nosotros
  • Nuestra empresa
  • Activos de marca
  • Contáctanos
  • Empleos
  • Eventos
  • Podcast
  • Blog
  • Clientes
  • Legal • Privacidad
  • Seguridad
الْعَرَبيّة 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 es un conjunto de aplicaciones de código abierto que cubren todas las necesidades de tu empresa: CRM, comercio electrónico, contabilidad, inventario, punto de venta, gestión de proyectos, etc.

La propuesta única de valor de Odoo es ser muy fácil de usar y estar totalmente integrado.

Sitio web hecho con

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