how to update One2many list with value [ODOO 12]
问题 I added a method that does a research of the teacher in the lessons then he added in the yard (the course several lesson, each lesson a single teacher) my problem is when I click on the button it does not the table update, he has added another line below each click it's my code teacher_ids = fields.One2many('school.teacher', 'course_id', string='Teacher') def get_teachers (self): lesson = self.env['school.lesson'].search([]) teacher_list = [] for rec in lesson: if rec.course_id.id == self.id: