Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
6 ตอบกลับ
8061 มุมมอง

I have several reports which can be printed by clicking buttons separately. Like - five reports have five buttons.

We need to print all reports by clicking one button.

Is there any possibility to do this?   

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi @Md. Tanziul Hasan Khan,
i think you have to try report syntax: https://www.odoo.com/documentation/11.0/reference/reports.html

You can print multiple report using class="page" in qweb

Try if helpful..

<report
    id="account_invoices"
    model="account.invoice"
    string="Invoices"
    report_type="qweb-pdf"
    name="account.report_invoice"
    file="account.report_invoice"
    attachment_use="True"
    attachment="(object.state in ('open','paid')) and
        ('INV'+(object.number or '').replace('/','')+'.pdf')"
/>


<template id="report_invoice">
    <t t-call="web.html_container">
        <t t-foreach="docs" t-as="o">
            <t t-call="web.external_layout">
                <div class="page">
                    <h2>Report title</h2>
                    <p>This object's name is <span t-field="o.name"/></p>
                </div>
            </t>
        </t>
    </t>
</template>
อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hello @Md. Tanziul Hasan Khan

Have you found solution for single button click print 5 diff diff reports.

อวตาร
ละทิ้ง

@Haresh Kansara

I need print 3 diffrent report in 1 button click.

@Haresh Kansara

You give answer in that only print one report not print multiple report

ผู้เขียน

You will need to print a single file with 5 different reports.

But later I didn't do it. It gives a tremendous amount of load to the RDS and doesn't worth it.

คำตอบที่ดีที่สุด

Try this modules:

Print Multiple Reports In Single File

Print Multiple Invoice Reports To Single File

Print Multiple Sales Reports To Single File

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
3
ก.พ. 19
3759
0
ธ.ค. 17
3626
1
ก.ย. 17
5114
2
ก.พ. 17
7173
1
ส.ค. 16
16612