Skip to content

[18.0] [FIX] web_timeline: Migrate check_access_rights to has_access following deprecation#3462

Open
paradoxxxzero wants to merge 1 commit intoOCA:18.0from
akretion:18.0-fix-web_timeline-deprecation
Open

[18.0] [FIX] web_timeline: Migrate check_access_rights to has_access following deprecation#3462
paradoxxxzero wants to merge 1 commit intoOCA:18.0from
akretion:18.0-fix-web_timeline-deprecation

Conversation

@paradoxxxzero
Copy link
Copy Markdown
Contributor

check_access_rights is deprecated in 18.0, replace it with has_access

Copy link
Copy Markdown
Contributor

@alexey-pelykh alexey-pelykh left a comment

Choose a reason for hiding this comment

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

Thanks for this fix, Florian.

Verified that check_access_rights is indeed deprecated since Odoo 18.0 (emits DeprecationWarning) and that has_access is the correct boolean replacement.

The call signature change from check_access_rights([operation, false]) to has_access([[], operation]) correctly matches the new API — empty recordset + operation string. All three call sites (write, unlink, create) are consistently updated, and the test mock follows.

CI is green, LGTM.

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