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

Report template customization

Suscribirse

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

Se marcó esta pregunta
pdfcommunityodooCybrosysReportodoo15
1 Responder
1143 Vistas
Avatar
Ajay kumar ravidas

<template id="general_ledger_detailed_pdf_template" name="Web Report Detailed Page">

​ <t t-call="web.basic_layout">

​ <div class="header">

​ <t t-if="not o" t-set="o" t-value="docs"/>

​ <t t-if="not company">

​ <t t-if="company_id">

​ <t t-set="company" t-value="company_id"/>

​ </t>

​ <t t-elif="o and 'company_id' in o and o.company_id.sudo()">

​ <t t-set="company" t-value="o.company_id.sudo()"/>

​ </t>

​ <t t-else="else">

​ <t t-set="company" t-value="res_company"/>

​ </t>

​ </t>

​ <div style="padding-top: 5px; border-bottom: 1px solid #000;">

​ <div>

​ <h6 class="text-center text-uppercase font-weight-bold">

​ <span t-esc="company.name"/>

​ </h6>

​ <h5 class="text-center text-uppercase text-decoration-underline font-weight-bold"><u><t t-out="report.get_title()"/></u></h5>

​ <div t-if="options.get('filter_date')" class="h6 font-weight-bold text-center p-0 m-0 mb-2">

​ <span t-out="report._get_report_title(options)"/>

​ </div>

​ </div>

​ </div>

​ </div>

​ <div class="page" style="padding: 40px;">

​ <t t-if="not o" t-set="o" t-value="docs"/>

​ <t t-if="not company">

​ <t t-if="company_id">

​ <t t-set="company" t-value="company_id"/>

​ </t>

​ <t t-elif="o and 'company_id' in o and o.company_id.sudo()">

​ <t t-set="company" t-value="o.company_id.sudo()"/>

​ </t>

​ <t t-else="else">

​ <t t-set="company" t-value="res_company"/>

​ </t>

​ </t>

​ <table class="table ics_report_main_table" style="width: 100%; color: #000000;">

​ <t t-set="group_headers" t-value="options.get('report_header_groups', [])"/>

​ <t t-set="headers" t-value="options.get('headers', [])"/>

​ <thead style="display: table-header-group;">

​ <tr t-if="options.get('filter_date') and len(group_headers) &gt; 1">

​ <th class="bg-300"></th>

​ <th t-foreach="group_headers" t-as="group_header" t-att-colspan="len(headers)" class="text-center bg-300" style="padding: 3px !important;">

​ <t t-out="group_headers[group_header].get('string')"/>

​ </th>

​ </tr>

​ <tr class="group_header" t-if="options.get('group_column')">

​ <th class="bg-300"></th>

​ <t t-set="header_group_id" t-value=""/>

​ <th t-foreach="headers" t-as="header" t-att-colspan="header.get('col_group_length')" class="bg-300" t-if="header.get('group_id') != header_group_id">

​ <t t-esc="header.get('group_string')"/>

​ <t t-set="header_group_id" t-value="header.get('group_id')"/>

​ </th>

​ </tr>

​ <tr>

​ <th class="bg-300"></th>

​ <t t-foreach="group_headers" t-as="group_header">

​ <t t-foreach="headers" t-as="header" t-key="header_key">

​ <t t-if="header['column_visible']">

​ <th class="bg-300" style="padding: 3px !important;">

​ <span><t t-out="header['string']"/></span>

​ </th>

​ </t>

​ </t>

​ </t>

​ </tr>

​ </thead>

​ <tbody style="display: table-row-group;">

​ <t t-foreach="section_lines" t-as="parent_section">

​ <t t-if="parent_section.get('row_class') != 'ics_group_total'">

​ <t t-set="additional_lines" t-value="report.get_web_report_section_data(parent_section, options)"/>

​ <t t-set="section_lines" t-value="[parent_section] + (additional_lines if additional_lines else [])"/>

​ <t t-foreach="section_lines" t-as="line" t-foreach-index="line_index">

​ <t t-set="line_class" t-value="line.get('row_class', '')"/>

​ <tr t-attf-class="

​ ics_report_base_line_level_{{ line['level'] }}

​ {{ 'bg-300' if line['level'] == 0 and not line_class else '' }}

​ {{ (line_class + ' bg-300') if line_class and len(report.line_ids) == 1 else '' }}">

​ <!-- Title Column -->

​ <t t-if="line_index == 0">

​ <td class="text-black" style="padding: 4px!important; font-weight: bold;">

​ <strong t-out="line['title']"/>

​ </td>

​ </t>

​ <t t-else="">

​ <td class="text-black" t-att-style="'font-weight: normal; padding-left: %dpx;' % (10 * (line.get('level')))">

​ <span t-out="line['title']"/>

​ </td>

​ </t>

​ <!-- Value Columns -->

​ <t t-foreach="group_headers" t-as="group_header">

​ <t t-foreach="headers" t-as="header" t-key="header">

​ <t t-if="header['column_visible']">

​ <t t-set="value_dict" t-value="line.get('values', {}).get(group_header, {})"/>

​ <t t-set="cell_value" t-value="value_dict.get(header['expression_label'], '')"/>

​ <t t-set="is_zero" t-value="value_dict.get(header['expression_label'] + '_is_zero', '')"/>

​ <t t-set="main_group" t-value="line.get('values', {}).get('main_group', {})"/>

​ <td style="padding: 4px!important;"

​ t-attf-class="ics_column_value {{header['value_type']}} ics_report_base_line_level_{{line['level']}}

​ {{is_zero and 'ics_zero_value' or ''}}

​ {{header['hide_if_zero'] and 'ics_hide_zero' or ''}}

​ {{main_group.get('column_value_hide') and line_class != 'ics_group_total' and 'column_value_hide' or ''}}">

​ <span t-out="cell_value"/>

​ </td>

​ </t>

​ </t>

​ </t>

​ </tr>

​

​ <!-- Handle children if any -->

​ <t t-if="line.get('children')">

​ <t t-call="ics_report_base.section_child_lines"/>

​ </t>

​ </t>

​ </t>

​ </t>

​ </tbody>

​ </table>

​ </div>

​ <!-- Repeating footer for PDF rendering -->

​ <div class="footer o_footer">

​ <div style="border-top: 1px solid #000; padding-top: 5px; width: 100%; text-align: center; font-size: 12px;">

​ <div>

​ <span t-esc="report.env.company.name"/>,

​ <span t-esc="report.env.company.street"/>,

​ <span t-esc="report.env.company.city"/>,

​ <span t-esc="report.env.company.zip"/>,

​ <span t-esc="report.env.company.country_id.name"/>

​ </div>

​ <div style="margin-top: 3px;">

​ Page <span class="page"/> of <span class="topage"/>

​ </div>

​ </div>

​ </div>

​ </t>

</template>

I am currently working on the report template and am satisfied with its overall structure. However, I have a requirement that the table header should repeat on every page.

Could you please provide guidance on the necessary modifications to the existing template to meet this requirement? Your expertise would be greatly appreciated.

Thank you for your assistance.

0
Avatar
Descartar
Avatar
Cybrosys Techno Solutions Pvt.Ltd
Mejor respuesta

Hi,

Please refer to the module - https://apps.odoo.com/apps/modules/9.0/report_qweb_element_page_visibility

You can find all the latest versions from v8 to v18.


Hope it helps.   

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
I have lots of confusion on postgresql,python,JS,XML could you please explain which is our back end language and which is our front end language and also explain what is the role of each of them Resuelto
odoo Cybrosys
Avatar
Avatar
1
jul 23
3936
I wan to migrate web_widget_plotly_chart from odoo 15 to 16 but getting error Resuelto
odoo Cybrosys
Avatar
Avatar
1
may 23
3207
Installing Odoo Community 9 on my website
community odoo
Avatar
Avatar
Avatar
2
ago 16
6370
Looking for Tips to Prepare for the Odoo 18 Functional Certification – Any Recommendations?
community odoo ERP
Avatar
Avatar
Avatar
2
oct 25
1114
Request for Customization of Product List Display in Odoo Community 17
community product odoo
Avatar
Avatar
Avatar
2
jun 25
2904
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