liste_etudiant = []
for record in self:
if record.x_studio_anne_academique_:
etudiant = self.env['x_apprenant_par_annee'].search([('x_studio_many2one_field_S5CZy.id','=',record.x_studio_anne_academique_.id)])
if etudiant:
for line in etudiant:
liste_etudiant.append(line)
---------------------------------------------------------------------------------------------------
Now my data is in liste_etudiant.
The issue, is how put this data in many2manyfield ?
when i do this :
for f in liste_etudiant:
record.write({' x_studio_many2many_field_knpV7' : f})
I only get one data display in many2many field.
Thanks !