Skip to content

[FIX] owl-core: set plugin manager ready before starting plugins - #2077

Merged
ged-odoo merged 1 commit into
odoo:masterfrom
phenix-factory:master-plugin-ready-did
Nov 26, 2026
Merged

ged-odoo merged 1 commit into
odoo:masterfrom
phenix-factory:master-plugin-ready-did

Conversation

@phenix-factory

@phenix-factory phenix-factory commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

startPlugins starts the first batch of plugins synchronously but only assigned ready afterwards. A plugin reading pluginManager.ready during that batch got the previous, usually resolved, promise, so it did not wait for the plugins of higher sequence.

ready is now assigned before the first batch starts. It follows the batch chain, or resolves right away when every plugin starts synchronously. As a consequence, a first batch plugin's onWillStart must not wait on ready, as was already the case for later batches.

See: odoo/odoo#305419

`startPlugins` starts the first batch of plugins synchronously but only
assigned `ready` afterwards. A plugin reading `pluginManager.ready`
during that batch got the previous, usually resolved, promise, so it
did not wait for the plugins of higher sequence.

`ready` is now assigned before the first batch starts. It follows the
batch chain, or resolves right away when every plugin starts
synchronously. As a consequence, a first batch plugin's `onWillStart`
must not wait on `ready`, as was already the case for later batches.
@ged-odoo
ged-odoo merged commit b57e902 into odoo:master Nov 26, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants