odoo/industry#2026

Created by Tristan Cazier (trcaz)
Merged at bcb4da9f3ce08a9b82fd8ec519228ab952625ff5

Statuses:

label
odoo-dev:19.0-booking_engine-fix-availabilities-cron-trcaz
head
9a6403635ec21442af0d2df1c7b75828fe8bfa3c
merged
9 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.