Hello,
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]
Thanks,
example_ids = fields.Many2many('model.a', string="Many2many String")
# onchange method
real_object_list = []
for data in self.example_ids:
real_object_list.append(data.real_object_id_from_many2_many_table)