Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
8219 มุมมอง

I am trying to print two copies of the same invoice document with my own invoice layout, this two copies the first one is for the Customer and the other one is for Internal Support having each one a label with mentioned purposes on them.

Is there is a way to print those copies using a single template?

อวตาร
ละทิ้ง
As you said Axel, I figured out calling a template twice and setting a variable before the template call and showing the content for that variable inside the template, I just thought that would be another way to do it.

Thanks 

On Sat, Oct 24, 2015 at 12:35 PM, Axel Mendoza <portaltemplate12973@mail.odoo.com> wrote:

A new answer for Print QWeb report copies has been posted. Click here to access the post.

--
Axel Mendoza
Sent by Odoo Inc. using Odoo about Forum Post Print QWeb report copies



--
Osval Reyes
Developer
osval@vauxoo.com  Vauxoo, C.A.  www.vauxoo.com 

 

 
คำตอบที่ดีที่สุด

Yes, you just need to define the body of the document in a template and call that template twice

อวตาร
ละทิ้ง

For completeness you should put a page break between the two calls to ensure that the second copy begins in the next page. See how to do it here: https://www.odoo.com/forum/help-1/question/how-to-include-a-page-break-second-page-in-custom-report-pdf-91277#answer_91281

ผู้เขียน

The inner template is inside of

...
and that does the trick as well
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
มี.ค. 15
2901
2
ก.ย. 24
2059
How do i create report in Qweb? แก้ไขแล้ว
5
ส.ค. 19
46646
4
มิ.ย. 18
20233
0
มิ.ย. 18
3417