Skip to Content
Menú
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
Descartar
Related Posts Respostes Vistes Activitat
0
de juny 17
6283
0
d’abr. 16
3970
0
de març 24
861
1
de juny 25
15516
3
d’abr. 25
5721