Skip to Content
Menu
This question has been flagged
1 Reply
3283 Views

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
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

Avatar
Discard
Author

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!

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"

Author

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!

Author

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.

Related Posts Replies Views Activity
0
Feb 23
935
2
Sep 17
9215
0
Nov 16
4589
1
Jul 21
19922
1
Mar 19
2907