Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged

I currently have this setup:

_inherit = 'crm.lead'

prnt_id = fields.Many2one('crm.lead')

chld_ids = fields.One2many('crm.lead', 'prnt_id')


I want to be able to search all related leads of a lead, recursively. I think I can do these by creating a computed many2many field that computes all related leads of a lead. Can someone help me with the "algorithm" to get all related leads? Thank you!


Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
0
čvn 17
6341
0
dub 16
4006
0
bře 24
873
1
čvn 25
15621
3
dub 25
5917