Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
3 Risposte
5617 Visualizzazioni

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.

Avatar
Abbandona
Risposta migliore

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.

Avatar
Abbandona
Risposta migliore

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>
Avatar
Abbandona
Autore

unfortunately it doesnt work :/

Post correlati Risposte Visualizzazioni Attività
0
set 19
3952
2
ago 25
2547
1
lug 25
961
1
ago 25
1151
0
mag 25
1403