Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
4442 Представления

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!

Аватар
Отменить
Лучший ответ

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

Аватар
Отменить
Автор

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"

Автор

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!

Автор

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 Ответы Просмотры Активность
0
февр. 23
1823
2
сент. 17
10415
0
нояб. 16
4589
1
июл. 21
21056
1
мар. 19
4164