Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
724 Zobrazení

How can I adjust the standard placeholder {{ object.partner_id.id }} to select the contacts related to object.partner which are of contact type "invoice"

Txs

Avatar
Zrušit
Autor Nejlepší odpověď

Thank you so much for taking your time and answering my question.

I believe form the logic your string of code must be correct. However the field shows up as empty when running the normal process from within invoice / send and print.

So I have doubts if the field can handle joint table request.
We are still in version 15, also this could be a limitation.

Kudos and have a good weekend

Avatar
Zrušit
Nejlepší odpověď

Hi,

You can use this placeholder:

{{ ', '.join(map(str, object.partner_id.child_ids.filtered(lambda c: c.type == 'invoice').mapped('id'))) }}


Hope it helps

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
říj 25
347
0
říj 25
102
2
říj 25
215
1
říj 25
251
2
říj 25
374