Help

0

Select multiple selected Vendor Bills Invoices in one PDF File Print

Avatar
Nasir

Hi All Professionals,

                                How to print multiple selected vendor bills and print to same PDF File with different pages in Odoo 10 Enterprise. Kindly help me with complete xml code that it works and code changes?  Waiting for reply  Thanks!

Avatar
Discard
1 Answer
7
Best Answer

Hello Nasir, 

You can print multiple selected vendor bills and print to same PDF File with different pages as it is the default flow of Odoo. 

From Tree view you can select the vendor bills which you want to print. 

All will be saved in the same PDF file

https://prnt.sc/rlmtqd

Thanks

Anisha Bahukhandi

Technical Content Writer

Webkul

4 Comments
Avatar
Discard
Avatar
Nasir
-

Madam, I know its the default flow. But i made a custom module to print my pdf with mine added fields through XML code and dont know how to write the docs with all fields or with foreach loop becuase it giving error.

Code which i have wrote:

</template>

<template id="report_contpurchase">

<t t-call="report.html_container">

<t t-foreach="docs" t-as="doc">

<t t-call=" contractor_purchaseinvoice.cont_report" t-lang="doc.partner_id.lang"/>

</t>

</t>

</template>

<t t-set="doc" t-value="doc.with_context({'lang':doc.partner_id.lang})" />

below one is code to print fields is this right or not and can you give me complete code please. Thanks!

Avatar
Anisha Bahukhandi
-

It Seems like there is some issue with the "contractor_purchaseinvoice.cont_report" report

Also please share the exact error which you are getting

Also for language please update

"doc.invoice_user_id.sudo().lang or doc.partner_id.lang"

Avatar
Nasir
-

Dear Madam Anisha There is not any issue related to code i want to print vendor bills by selecting multiple bills from odoo interface and i want to implement in xml code. Kindly can you help me. and I dont want to convert to any language. Waiting for reply. Thanks so much!

Avatar
Nasir
-

If you have odoo10, you can see that in Sales Quotation Model we can print multiple selected quotations and print them in a single click pdf file.