Skip to content

Syncing from upstream OCA/server-tools (18.0) - #2108

Merged
bt-admin merged 3 commits into
brain-tec:18.0from
OCA:18.0
Sep 12, 2026
Merged

bt-admin merged 3 commits into
brain-tec:18.0from
OCA:18.0

Conversation

@bt-admin

Copy link
Copy Markdown

bt_gitbot

florian-dacosta and others added 3 commits September 11, 2026 00:48
detect_exceptions() stores the exceptions in a separate transaction (a new
cursor/connection) so that they are kept when the ongoing transaction is
rolled back. When the registry is not ready yet (module installation or
update), the ongoing transaction holds exclusive locks on the tables it has
just modified (ALTER TABLE ...). The call to
_must_raise_exception_after_detection() made inside that new transaction then
reads the model records, and the query waits for those locks forever: the
only thread able to release them is the one waiting for them.

This happens as soon as demo data confirming a sale order is loaded during a
database initialisation with sale_exception installed (e.g. the sale_stock
demo data), making the whole database initialisation hang.

Use the current cursor in that case, as already done when running tests.
Signed-off-by hparfr
@bt-admin bt-admin added the 18.0 label Sep 12, 2026
@bt-admin
bt-admin merged commit 84a805a into brain-tec:18.0 Sep 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants