Skip to content

[FIX] Added missing .sudo or compute_sudo=True#441

Open
katyukha wants to merge 1 commit intoOCA:18.0from
katyukha:18.0-fix-security
Open

[FIX] Added missing .sudo or compute_sudo=True#441
katyukha wants to merge 1 commit intoOCA:18.0from
katyukha:18.0-fix-security

Conversation

@katyukha
Copy link
Contributor

@katyukha katyukha commented Mar 8, 2026

This PR adds _compute_sudo=True to compute methods that access system models like (ir.model, ir.model.fields, ...) to avoid unexpected access errors in user interface.

Also, this PR adds .sudo() when code accesses (reads) system models for same reasone.

This PR adds `_compute_sudo=True` to compute methods that access system
models like (ir.model, ir.model.fields, ...) to avoid unexpected access
errors in user interface.

Also, this PR adds `.sudo()` when code accesses (reads) system models
for same reasone.
@katyukha
Copy link
Contributor Author

katyukha commented Mar 8, 2026

@cormaza @legalsylvain @yvaucher @zamberjo Please, review this fix.

Thanks a lot!

@legalsylvain
Copy link
Contributor

Hi. Could yiu explain the bug you want to solve ?

(With step to reproduce)

@zamberjo
Copy link
Member

zamberjo commented Mar 9, 2026

I agree with @legalsylvain . We have been using this functionality for a long time without needing these privilege escalations. We need steps to reproduce the issue and a test case to verify it.

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.

3 participants