Skip to content

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

Closed
fw-bot wants to merge 1 commit intoodoo:saas-19.1from
odoo-dev:saas-19.1-19.0-booking_engine-fix-availabilities-cron-trcaz-519098-fw
Closed

[FIX] booking_engine: fix cron not working after the first time#2027
fw-bot wants to merge 1 commit intoodoo:saas-19.1from
odoo-dev:saas-19.1-19.0-booking_engine-fix-availabilities-cron-trcaz-519098-fw

Conversation

@fw-bot
Copy link
Copy Markdown

@fw-bot fw-bot commented Apr 21, 2026

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

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.

X-original-commit: bcb4da9
@robodoo
Copy link
Copy Markdown
Collaborator

robodoo commented Apr 21, 2026

Pull request status dashboard

@fw-bot
Copy link
Copy Markdown
Author

fw-bot commented Apr 21, 2026

This PR targets saas-19.1 and is part of the forward-port chain. Further PRs will be created up to master.

More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port

@fw-bot
Copy link
Copy Markdown
Author

fw-bot commented Apr 21, 2026

@trcazier @vava-odoo the next pull request (#2028) is in conflict. You can merge the chain up to here by saying

@robodoo r+

More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port

@trcazier
Copy link
Copy Markdown
Contributor

@robodoo r+

robodoo pushed a commit that referenced this pull request Apr 21, 2026
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.

closes #2027

X-original-commit: bcb4da9
Signed-off-by: Vallaeys Valentin (vava) <vava@odoo.com>
Signed-off-by: Tristan Cazier (trcaz) <trcaz@odoo.com>
@robodoo robodoo closed this Apr 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants