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
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Księgowość
- Zapasy
- PoS
- Project
- MRP
To pytanie dostało ostrzeżenie
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
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
Podoba Ci się ta dyskusja? Dołącz do niej!
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj się| Powiązane posty | Odpowiedzi | Widoki | Czynność | |
|---|---|---|---|---|
|
|
2
paź 25
|
615 | ||
|
|
1
lis 25
|
130 | ||
|
|
1
paź 25
|
176 | ||
|
|
0
paź 25
|
189 | ||
|
|
0
paź 25
|
16 |