The toolbar button should be disabled depending of the selected records (like in tryton _record_message)