Skip to Content
Menu
This question has been flagged
2 Replies
5795 Views

I am printing several id of a table in a single report and I repeatedly see the company logo and footer data.
How can I remove it from the page and only appear once?
link photo: \https://ibb.co/4WKRzhs
The html code of the report is as follows:

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<report
id="listado_limayor"
model="proyecto_rc.cuenta"
string="Lmayor"
name="proyecto_rc.report_cuenta_view"
file="proyecto_rc.report_lmayor"
report_type="qweb-html" />

<template id="report_cuenta_view">
<t t-call="web.html_container">
<t t-foreach="docs" t-as="i">
<t t-call="web.external_layout">
<div class="page">
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<style>
table.tabla {
width: 100%;
background-color: #FFFFFF;
border-collapse: collapse;
border-width: 2px;
border-color: #182AFF;
border-style: solid;
color: #000000;
}

table.tabla td, table.tabla th {
border-width: 2px;
border-color: #182AFF;
border-style: solid;
padding: 2px;
}

table.tabla th {
background-color: #FFFFFF;
}
</style>


<h2 style="text-align: center">Libro mayor</h2>
<h3>Cuenta
<span t-esc="i.titulo"/>
</h3>
<table class="tabla">
<tr>
<th style="text-align: center">Fecha</th>
<th style="text-align: center">Razón social</th>
<th style="text-align: center">Debe</th>
<th style="text-align: center">Haber</th>
</tr>
<t t-foreach="i.detalle_documento_ids" t-as="o">
<tr>
<td>
<span t-esc="o.fecha"/>
</td>
<td>
<span t-esc="o.razon_social_id.nombre"/>
</td>
<td>
<span t-esc="o.total_debe"/>
</td>
<td>
<span t-esc="o.total_haber"/>
</td>
</tr>
</t>
<tfoot>
<tr><th colspan="2" style="text-align: center">Total</th>
<th style = "text-align: center"> <span t-esc = "i[0].total_cuenta_debe" /> </th>
<th style = "text-align: center"> <span t-esc = "i[0].total_cuenta_haber" /> </th></tr>
<tr><th colspan="2" style="text-align: center">Saldo</th>
<th colspan="2" style = "text-align: center"> <span t-esc = "i[0].saldo" /> </th></tr>
</tfoot>
</table>
</div>
</t>
</t>
</t>
</template>
</data>
</odoo>





Avatar
Discard

Please learn to properly format your questions.

Best Answer

Hi!

Please change <t t-call="web.external_layout"> to <t t-call="web.internal_layout"> in your code.

Best regards!

Avatar
Discard
Related Posts Replies Views Activity
2
Dec 19
1890
3
Apr 24
1022
0
May 24
46
1
Apr 24
1828
4
Sep 23
3085