Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
4308 Переглядів

Hi,

In a Custom App I want to print multiple reports of selected records from the treeview but if give this error "Bad request".

When i tried this on officiel module ex Sales it work in printing multiple reports(download in pdf format)

Аватар
Відмінити
Найкраща відповідь

Hi momumen,

create a report

<report 
string="Request for Quotation"
id="report_purchase_quotation"
model="purchase.order"
report_type="qweb-pdf"
name="purchase.report_purchasequotation"
file="purchase.report_purchasequotation"
/>

when we creating a template

<template id="report_purchasequotation">
<t t-call="report.html_container">
<t t-foreach="docs" t-as="o">
<t t-call="purchase.report_purchasequotation_document" t-lang="o.partner_id.lang"/>
</t>
</t>
</template>

template id = report_purchasequotation its mention in the report's name and file.

"report_purchasequotation_document" - In this name, we create the exact qweb report template. then I think it will solve your issue. please check these with your custom modules.

Thank you

Аватар
Відмінити
Найкраща відповідь

Hello,

you can use this module to print separate PDF for each record.

\https://apps.odoo.com/apps/modules/11.0/acs_report_download/

Аватар
Відмінити