'When changing the user, also set a team_id or restrict team id to the ones user_id is member of.'

@api.onchange('user_id')
def _onchange_user_id(self):

    values = self._onchange_user_values(self.user_id.id)
    self.update(values)
