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


In v7 and v8 to have the same report printed twice in the same pdf, I just had to pass twice the id to the report (ids=[1,1]).

Now I try to do the same in v9 but I can't find a way to do this: account.invoice(1,1,) !

to_print = self.env['account.invoice']

to_print |= account.invoice(1,)

to_print |= account.invoice(1,)

But here to_print just have once the record account.invoice(1,) , because the "|=" is the intersection.

Is there a way to have what I need ?

Thanks

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

to_print = self.env['account.invoice']

to_print = account.invoice(1,)

to_print += account.invoice(1,)

here to_print is account.invoice(1,1,)

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
write() vs update() แก้ไขแล้ว
4
ก.ย. 20
41977
1
ม.ค. 16
5315
3
เม.ย. 17
18349
0
ส.ค. 25
158
1
ส.ค. 25
497