跳至内容
菜单
此问题已终结
2 回复
756 查看

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

形象
丢弃
编写者 最佳答案

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

形象
丢弃
相关帖文 回复 查看 活动
2
10月 25
414
2
10月 25
2040
1
10月 25
166
1
10月 25
164
1
10月 25
252