odoo/industry#2031

Created by fw-bot
Merged at c5ed2f87723d5ed184081bc3bd1067592b8a9899

Statuses:

label
odoo-dev:master-19.0-booking_engine-fix-availabilities-cron-trcaz-519144-fw
head
c2b35581e7731180c24ee01581a1fce672f44678
merged
8 hours ago by Industry, Vallaeys Valentin (vava)
odoo/industry
19.0 #2026
saas-19.1 #2027
saas-19.2 #2028
master #2031

[FIX] booking_engine: fix cron not working after the first time

Before this commit, the ir_cron_create_500_days_availability cron could only work the first time. The code was correct when no availabilities were returned by the _read_group but incorrect when not empty. This commit fixes this and adds a test to validate that the cron can run twice.

Forward-Port-Of: #2028
Forward-Port-Of: #2026