I am duplicating projects and tasks, in that process, the one2many fields should also be duplicated.
I am using the create function instead of copy() function for duplicating the projects and tasks
This is the One2many field that i want to duplicate:
predecessor_ids = fields.One2many('project.task.predecessor', 'task_id', 'Links' ,copy=True)