Ir al contenido
Odoo Menú
  • Identificarse
  • Pruébalo gratis
  • Aplicaciones
    Finanzas
    • Contabilidad
    • Facturación
    • Gastos
    • Hoja de cálculo (BI)
    • Documentos
    • Firma electrónica
    Ventas
    • CRM
    • Ventas
    • TPV para tiendas
    • TPV para restaurantes
    • Suscripciones
    • Alquiler
    Sitios web
    • Creador de sitios web
    • Comercio electrónico
    • Blog
    • Foro
    • Chat en directo
    • eLearning
    Cadena de suministro
    • Inventario
    • Fabricación
    • PLM
    • Compra
    • Mantenimiento
    • Calidad
    Recursos Humanos
    • Empleados
    • Reclutamiento
    • Ausencias
    • Evaluación
    • Referencias
    • Flota
    Marketing
    • Marketing social
    • Marketing por correo electrónico
    • Marketing por SMS
    • Eventos
    • Automatización de marketing
    • Encuestas
    Servicios
    • Proyecto
    • Partes de horas
    • Servicio de campo
    • Servicio de asistencia
    • Planificación
    • Citas
    Productividad
    • Conversaciones
    • Aprobaciones
    • IoT
    • VoIP
    • Información
    • WhatsApp
    Aplicaciones de terceros Studio de Odoo Plataforma de Odoo Cloud
  • Industrias
    Comercio al por menor
    • Librería
    • Tienda de ropa
    • Tienda de muebles
    • Tienda de ultramarinos
    • Ferretería
    • Juguetería
    Alimentación y hostelería
    • Bar y taberna
    • Restaurante
    • Comida rápida
    • Casa de huéspedes
    • Distribuidor de bebidas
    • Hotel
    Inmueble
    • Agencia inmobiliaria
    • Estudio de arquitectura
    • Construcción
    • Gestión inmobiliaria
    • Jardinería
    • Asociación de propietarios
    Consultoría
    • Empresa contable
    • Partner de Odoo
    • Agencia de marketing
    • Bufete de abogados
    • Adquisición de talentos
    • Auditorías y certificaciones
    Fabricación
    • Textil
    • Metal
    • Muebles
    • Alimentos
    • Brewery
    • Regalos de empresas
    Salud y bienestar
    • Club deportivo
    • Óptica
    • Gimnasio
    • Terapeutas
    • Farmacia
    • Peluquería
    Oficios
    • Handyman
    • Hardware y asistencia informática
    • Sistemas de energía solar
    • Zapatero
    • Servicios de limpieza
    • Servicios de calefacción, ventilación y aire acondicionado
    Otros
    • Organización sin ánimo de lucro
    • Agencia de protección del medio ambiente
    • Alquiler de paneles publicitarios
    • Estudio fotográfico
    • Alquiler de bicicletas
    • Distribuidor de software
    Browse all Industries
  • Comunidad
    Aprender
    • Tutoriales
    • Documentación
    • Certificaciones
    • Formación
    • Blog
    • Podcast
    Potenciar la educación
    • Programa de formación
    • Scale Up! El juego empresarial
    • Visita Odoo
    Obtener el software
    • Descargar
    • Comparar ediciones
    • Versiones
    Colaborar
    • GitHub
    • Foro
    • Eventos
    • Traducciones
    • Convertirse en partner
    • Services for Partners
    • Registrar tu empresa contable
    Obtener servicios
    • Encontrar un partner
    • Encontrar un asesor fiscal
    • Contacta con un experto
    • Servicios de implementación
    • Referencias de clientes
    • Ayuda
    • Actualizaciones
    GitHub YouTube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Solicitar 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
  • Proyecto
  • 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

Printed Offers and Reports are missing the headers and footers

Suscribirse

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

Se marcó esta pregunta
invoicereportingv15
4 Respuestas
8494 Vistas
Avatar
Josef Schmid

This is what my invoice and report layout looks like in the preview

It is the standard boxed layout except I changed one single thing: I removed the bottom horizontal separator

Here is the code( I highlighted the changes I did, which is only one line)


The changes I added work perfectly fine as you can see in the preview. (I know, I should add changes by adding a inherited view)

However, the moment I generate a pdf from this layout, it is missing the header and footer

This is what it looks like:


What am I doing wrong or what did I misconfigure?


Thank you for your help.


Info:

Odoo 15, Linux debian 11 bullseye, 2vCPUS 8GB Ram, 120 GB, odoo linux install (no docker)

1
Avatar
Descartar
Avatar
Bernard Wilmus
Mejor respuesta

I have also the same problem on Odoo 16 Enterprise.

# wkhtmltopdf --version
wkhtmltopdf 0.12.6

The header and footer appear in the reports if I turn them into HTML report in the configuration.

So, I guess the problem is linked to wkhtmltopdf and a bad understanding of CSS.

I have tried also an other solution that you can find here:

https://www.odoo.com/fr_FR/forum/aide-1/how-to-solve-report-header-footer-missing-while-printing-195904

But adding the line...

command_args.extend(['--javascript-delay', str(1000)])

... do not change anything neither in my case..

No change neither by creating a configuration parameter report_url (by the way, if the parameter is missing for your configuration, you will not get any CSS formating)


The right solution was for me to downgrade wkhtmltopdf to 0.12.5 and add a patch on it.


# wkhtmltopdf --version
wkhtmltopdf 0.12.5 (with patched qt)


Now everything is working fine.






1
Avatar
Descartar
Avatar
Timo Denissen
Mejor respuesta

@Josef Schmid: Did you, by any chance, find a solution to this problem? We face a similar problem: quotations/orders and invoices print correctly, pro forma invoices lack the header and footer.

We're running Odoo 14 Enterprise.

1
Avatar
Descartar
Kiran K

@Timo If the issue is only with Pro Forma Invoice, Check the paper format set for the report.

Activate Developer Mode,

Goto Settings -> Technical -> Report

Search for PRO-FORMA Invoice and check the paper format,
You can also change Report Type to HTML and check whether it's showing the header and footer

Josef Schmid
Autor

@Timo Denissen, I am still on the look, I will update you once I find something.

Timo Denissen

@Kiran Thanks :) I checked the paper format and it's correct. The header and footer is simpy just not printed. I think someone edited the core templates and after an update the changes got reverted. I check that at the moment.

Avatar
Josef Schmid
Autor Mejor respuesta

When removing my changes, I still get no headers and footers. My changes do not appear to be the problem

0
Avatar
Descartar
Mya Yahmone Hlaing

Have you got solution ? I have the same issue.

Josef Schmid
Autor

@Mya Yahmone Hlaing unfortunately not, im still searching. In case you find something, let me know!

Avatar
Kiran K
Mejor respuesta

 Hi  ​Josef,

Activate Developer Mode

Goto Settings -> Technical -> Parameters -> System Parameters

Check whether report.url is set in system parameters.

Refer,
https://www.youtube.com/watch?v=lC9p_QJUW1Q

0
Avatar
Descartar
Josef Schmid
Autor

This was a great tip, as my report.url was still set to localhost. This also gave me the idea that the problem might have the same origin as an other problem I'm facing where, when i send an email with images, the images do not get displayed! I did set web.base.url tho...
Do you think these two might correlate? And how could i solve this?

Kiran K

It will not affect web.base.url,

Create a new parameter with,

key: report.url

value: your_ip:port

Josef Schmid
Autor

@Kiran K, thanks for the answer! I tried to set the report.url to to my IP:Port and to my domain, neither of it worked out, unfortunately. Do you have another Idea?

Kiran K

Try changing the Report Type to HTML and check whether it's showing the header and footer.

Hope the value given for report.url and web.base.url are the same

Josef Schmid
Autor

@Kiran K. Okay, I tried using HTML Report. There, the headers show up. Now, how can i get the same to work with PDF?

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

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

Inscribirse
Publicaciones relacionadas Respuestas Vistas Actividad
Odoo Down payment show the individual products instead of just down payment
invoice reporting v15
Avatar
Avatar
1
mar 25
2957
ODOO 15 for "Einnahmenüberschussrechnung EÜR"
reporting v15
Avatar
Avatar
Avatar
2
ago 25
3930
report layout generates error on pdf export but works in preview
reporting v15
Avatar
Avatar
1
abr 25
5370
Reports: table headers repeating PO vs SO Resuelto
reporting v15
Avatar
Avatar
2
jul 24
6958
Insert image into a report Resuelto
reporting v15
Avatar
Avatar
1
abr 24
2706
Comunidad
  • Tutoriales
  • Documentación
  • Foro
Código abierto
  • Descargar
  • GitHub
  • Runbot
  • Traducciones
Servicios
  • Alojamiento Odoo.sh
  • Ayuda
  • Actualizar
  • Desarrollos personalizados
  • Educación
  • Encontrar un asesor fiscal
  • Encontrar un partner
  • Convertirse en partner
Sobre nosotros
  • Nuestra empresa
  • Activos de marca
  • Contacta con nosotros
  • Puestos de trabajo
  • Eventos
  • Podcast
  • Blog
  • Clientes
  • Información 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 totalmente integrado.

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