% set users = object.env['res.users'].search([], limit=10, order='id desc')
% set channel_id = object.env.ref('mail.channel_all_employees').id
Did you know...?
You can ping colleagues by tagging them in your messages using "@". They will be instantly notified.