コンテンツへスキップ
メニュー
この質問にフラグが付けられました
3 返信
5869 ビュー

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.

アバター
破棄
最善の回答

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.

アバター
破棄
最善の回答

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>
アバター
破棄
著作者

unfortunately it doesnt work :/

関連投稿 返信 ビュー 活動
0
9月 19
4219
2
8月 25
3311
1
7月 25
1489
1
8月 25
1152
0
5月 25
1825