Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
4018 Lượt xem


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

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

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

to_print = account.invoice(1,)

to_print += account.invoice(1,)

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
write() vs update() Đã xử lý
4
thg 9 20
41923
1
thg 1 16
5290
3
thg 4 17
18340
1
thg 8 25
478
2
thg 7 25
2899