Skip to Content
Menu
This question has been flagged
1 Reply
2359 Views

Hi everyone,

I have this relation:

_name='student.student'

_column={

'parent_ids':fields.many2many('school.parent','student_parent_rel','student_id','parent_id','Parent List'),

}

_name='parent.parent'

'student_ids':fields.many2many('school.student','student_parent_rel','student_id','parent_id','Student List'),

Suppose I'm going to delete the student or the parent how automatcally delete the other record.

Thanks for your help


Avatar
Discard
Best Answer

You need to change it for one2many field that will do it automatically and also made more sense

Avatar
Discard