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

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
8523 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.

Registrarse
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
2963
ODOO 15 for "Einnahmenüberschussrechnung EÜR"
reporting v15
Avatar
Avatar
Avatar
2
ago 25
3949
report layout generates error on pdf export but works in preview
reporting v15
Avatar
Avatar
1
abr 25
5394
Reports: table headers repeating PO vs SO Resuelto
reporting v15
Avatar
Avatar
2
jul 24
6978
Insert image into a report Resuelto
reporting v15
Avatar
Avatar
1
abr 24
2738
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.

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