I have put an onchange method on a Many2many field. However whenever I add / change the values I want to search based on the id of the object not the id of the Many2many object, is this possible?
As the Id is always returning "newId", which I assume is the id of the Many2many relation table and not the base table.
Here is the main line of code:
[student.id for student in self.student_ids]