Set parent field in One2Many records
It may be useful to have the parent field filled when setting records of One2Many. This allows to reuse the same code for saved and unsaved.
This will not be in conflict with the One2Many API because One2Many.set already force this value.