Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
4021 Visninger


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

Avatar
Kassér
Forfatter Bedste svar

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

to_print = account.invoice(1,)

to_print += account.invoice(1,)

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

Avatar
Kassér
Related Posts Besvarelser Visninger Aktivitet
4
sep. 20
41958
1
jan. 16
5300
3
apr. 17
18344
1
aug. 25
488
2
jul. 25
2929