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

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/

アバター
破棄