Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie

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!


Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
cze 17
6304
0
kwi 16
3988
0
mar 24
867
1
cze 25
15549
3
kwi 25
5808