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

[Odoo12] Document details on every invoice report page

Suscribirse

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

Se marcó esta pregunta
qwebreportingqweb-reportOdoo12.0
5 Respuestas
4214 Vistas
Avatar
Paulo Matos

Hello everyone,

I am using Odoo 12 and have a legal requirement regardless report invoice and sale report.
I have to show the document details (document type, number, date, etc.) on every report page (not just the first one).

So, core Odoo report invoice allows me to print this information only at the first page.
In Odoo we have (first page):

     Customer Name
     Customer Address
     ...
     Country
     VAT

Below we have document details with number, date, etc.

What I need to do is to show the document details on the top of the page (starting from page 2), like:

     Customer: Customer Name
     Document Type: Invoice
     Number: INV XXX/2020
     Issue Date: 10-10-2020

I was able to add the desired values to variables in qweb, but I don't now how to check if page >1 in order to show the desired values...

Can anyone help me include this information at the top of every page other than the first one?
I have searched and could not find any solution for this.

Thank you all in advance

Best regards

PM


0
Avatar
Descartar
Avatar
Ermin Trevisan
Mejor respuesta

You can get the idea or you even may want to forward port this module: https://apps.odoo.com/apps/modules/10.0/report_qweb_element_page_visibility/

1
Avatar
Descartar
Paulo Matos
Autor

Hi @Ermin Trevisan,

Thank you very much.

I have tested the module (not complicated to port the desired part to 12), but found some problems on using it:

When I use the module, I can set the desired classes on "header" area of the report, for instance (as per module sample)...

<t t-if="o._table=='account_invoice'">

<div class="not-first-page">

<span t-esc="o.number"/>

</div>

</t>

<t t-if="o._table=='sale_order'">

<div class="not-first-page">

<span t-esc="o.name"/>

</div>

</t>

It just work as desired..., problem is that the new content is put on the top of existing content starting from second.

Please refer to the pic: https://pasteboard.co/IU0Zv7c.png

Also noticed that the new created "classes" only works for header and footer areas of the report.

Where can I find the hard code for footer and header for Core Odoo? I can only find the templates...

Thank you

Avatar
Oscar Alca
Mejor respuesta

You can easily achieve this by using Odoo studio and editing the report related to the invoice, take a look at this video 

https://www.youtube.com/watch?v=7G541x6dh_o


hope it helps

0
Avatar
Descartar
Paulo Matos
Autor

Thank you @Oscar,

Unfortunately it did not help. It is only an overview of Odoo Studio. I have tried already but cannot find a way to "add visibility" based on page number...

Avatar
Paulo Matos
Autor Mejor respuesta

Hello everyone,

I finally solved my issue. With help of module referred by @ \Ermin Trevisan, I was able to choose values to show on first and later pages.

Unfortunately after this, another problem arises and was related with header_spacing.

I had to "fight" with "margin_top" and "header_space" and with the help of  this module (  \https://apps.odoo.com/apps/modules/10.0/report_qweb_element_page_visibility/ ) I was able to design the desired structure to show document details on every page.

For those who will have the same issue (header spacing) keep in mind that it is "always" dependable on margin_top value.

Thank you all

Best regards

PM

 

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
Publicaciones relacionadas Respuestas Vistas Actividad
How can I display all tasks (including completed ones) in a QWeb report in Odoo?
qweb reporting
Avatar
Avatar
2
sept 24
3054
[SOLVED]How to remove currency symbol from Monetary field qweb report ?
qweb qweb-report
Avatar
Avatar
Avatar
Avatar
7
oct 25
29526
How do i create report in Qweb? Resuelto
qweb reporting
Avatar
Avatar
Avatar
Avatar
Avatar
5
ago 19
47548
Use dot as thousands separator for integer value in Qweb reports Resuelto
qweb-report Odoo12.0
Avatar
Avatar
2
may 19
7087
How to force re-install custom report template on Odoo 12? Resuelto
reporting Odoo12.0
Avatar
1
mar 19
4274
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