Before this commit: we assumed an event's recurrence only contains RRULE, and we were getting the RRULE from the first element in the list. But it could have EXRULE, RDATE, and EXDATE, so in this case, the first element could be other items. The solution is to iterate through all items and return the RRULE. opw-2797968 closes odoo/odoo#138697 X-original-commit: f2a20457b352026c2dfb50f6a4d48d47211708f9 Signed-off-by: Arnaud Joset (arj) <arj@odoo.com> Signed-off-by: Pedram Bi Ria (pebr) <pebr@odoo.com>