Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
3 Răspunsuri
5573 Vizualizări

Hello guys :D

After a lot of searchs, i couldnt find a solution how to print a report twice per page.

I have found the argument --copies of wkhtmltopdf or duplicating the template.

Can anyone help me find a solution please

Best regards.

Imagine profil
Abandonează
Cel mai bun răspuns

a lazy approach would be to put twice <div class="page"> tag on your report template. this way you'll have double content , one header, footer.

Imagine profil
Abandonează
Cel mai bun răspuns

try these code on template

put one more doc_id in  foreach loop like the below example

<template id="invoice_sale_report">

<t t-call="report.html_container">
<t t-foreach="[doc_ids,doc_ids]" t-as="doc_id">
<t t-raw="translate_doc(doc_id, doc_model, 'partner_id.lang','report.sale_invoice')" />
</t>
</t>
</template>
Imagine profil
Abandonează
Autor

unfortunately it doesnt work :/

Related Posts Răspunsuri Vizualizări Activitate
0
sept. 19
3913
2
aug. 25
2410
1
iul. 25
909
1
aug. 25
1151
0
mai 25
1344