Skip to content

fix: code review - #16

Merged
sireko merged 5 commits into
19.0-btlfrom
19.0-code_review-ai
Sep 11, 2026
Merged

sireko merged 5 commits into
19.0-btlfrom
19.0-code_review-ai

Conversation

@sireko

@sireko sireko commented Sep 11, 2026

Copy link
Copy Markdown

No description provided.

rov-adhoc and others added 5 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 ingadhoc#436

Related: ingadhoc/stock#1004
Related: ingadhoc/account-financial-tools#984
Related: ingadhoc/product#937
Signed-off-by: Filoquin adhoc <maq@adhoc.com.ar>
chore: merge '19.0' into the code review branch
chore: merge '19.0-btl' into the code review branch
@sireko
sireko merged commit 62d83a3 into 19.0-btl Sep 11, 2026
1 check 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.

5 participants