I have confirmed this on the latest 7.0 source code. Basically the `hr` module defines several one2many relationships that do not represent a regular parent-child relation, and does not correctly take care of discarding those relationships during copy/duplicate operations.
These 2 relationship must be explicitly discarded during copy():
- res.users.employee_ids
- hr.employee.child_ids
Thanks for the detailed bug report, Dan!
I have confirmed this on the latest 7.0 source code. Basically the `hr` module defines several one2many relationships that do not represent a regular parent-child relation, and does not correctly take care of discarding those relationships during copy/duplicate operations.
These 2 relationship must be explicitly discarded during copy(): employee_ ids child_ids
- res.users.
- hr.employee.