Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3 Trả lời
5636 Lượt xem

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.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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>
Ảnh đại diện
Huỷ bỏ
Tác giả

unfortunately it doesnt work :/

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 9 19
3958
2
thg 8 25
2590
1
thg 7 25
997
1
thg 8 25
1151
0
thg 5 25
1451