Skip to content

Fork Sync Branch 19.0 - #12

Merged
btl-bot merged 2 commits into
BTLzdravtech:19.0from
ingadhoc:19.0
Aug 27, 2026
Merged

Fork Sync Branch 19.0#12
btl-bot merged 2 commits into
BTLzdravtech:19.0from
ingadhoc:19.0

Conversation

@btl-bot

@btl-bot btl-bot commented Aug 27, 2026

Copy link
Copy Markdown

No description provided.

rov-adhoc and others added 2 commits August 26, 2026 13:36
Granting base.group_user to the parent menus without group was done while
loading the menus, but /web/webclient/load_menus is a readonly route, so
the write breaks its cursor with "cannot execute INSERT in a read-only
transaction". The request itself survives -it is retried with a read/write
cursor- but the failed query is already logged as an error, which is enough
to turn a test run red. On a real database it happened once, since the retry
commits the group; on tests it happens on every tour that loads the
webclient, because each test rolls that write back.

Doing it on _register_hook keeps the case covered -another module installing
a parent menu without internal group after portal_backend- and runs on a
read/write cursor: the hook is called when the registry is loaded, which is
what installing or updating a module does.

closes #436

Related: ingadhoc/stock#1004
Related: ingadhoc/account-financial-tools#984
Related: ingadhoc/product#937
Signed-off-by: Filoquin adhoc <maq@adhoc.com.ar>

@sireko sireko left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auto approved

@btl-bot
btl-bot merged commit 2e8a989 into BTLzdravtech:19.0 Aug 27, 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.

4 participants