'Sends through the bus the next alarm of given partners'

def notify_next_alarm(self, partner_ids):

    notifications = []
    users = self.env['res.users'].search([('partner_id', 'in', tuple(partner_ids))])
    for user in users:
        notif = self.sudo(user.id).get_next_notif()
        notifications.append([(self._cr.dbname, 'calendar.alarm', user.partner_id.id), notif])
    if (len(notifications) > 0):
        self.env['bus.bus'].sendmany(notifications)
