odoo/industry#2027
Created by fw-bot
- label
- odoo-dev:saas-19.1-19.0-booking_engine-fix-availabilities-cron-trcaz-519098-fw
- head
- 2e5ff06321d53524359008bdc5d953ffb9003fdc
- merged
- 5 hours ago by Tristan Cazier (trcaz)
| 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: #2026