'returns the new values when stage_id has changed'

@api.model
def _onchange_stage_id_values(self, stage_id):

    if (not stage_id):
        return {}
    stage = self.env['crm.stage'].browse(stage_id)
    if stage.on_change:
        return {'probability': stage.probability}
    return {}
