We are creating a custom module that will help new employees through their first days on the job. We have our own models based on 'hr.employee' and 'hr.plan' (among others).
When we try and launch a plan for a new employee, the user_id field has to be filled in. This means that there are some extra steps needed in the UI to create a record of the res.user model. To reduce the number of steps needed before launching a plan, we would like to automate this and have the user_id field be filled in automatically.
Does anyone know how this can be done in code instead of using the UI?