Skip to content

[18.0][FIX] base_user_role_profile: use self.env in session_info to support nodb authenticate#462

Open
RicardCForgeFlow wants to merge 1 commit into
OCA:18.0from
ForgeFlow:18.0-fix-base_user_role_profile
Open

[18.0][FIX] base_user_role_profile: use self.env in session_info to support nodb authenticate#462
RicardCForgeFlow wants to merge 1 commit into
OCA:18.0from
ForgeFlow:18.0-fix-base_user_role_profile

Conversation

@RicardCForgeFlow

Copy link
Copy Markdown
odoo-1                                         |   File "/opt/odoo/auto/addons/base_user_role_profile/models/ir_http.py", line 11, in session_info
odoo-1                                         |     user = request.env.user
odoo-1                                         |            ^^^^^^^^^^^^^^^^
odoo-1                                         | AttributeError: 'NoneType' object has no attribute 'user'

occurs during stateless JSON-RPC authentication calls (e.g., from external automated scripts or API clients hitting /web/session/authenticate).

@OCA-git-bot OCA-git-bot added series:18.0 mod:base_user_role_profile Module base_user_role_profile labels Jun 11, 2026
@RicardCForgeFlow RicardCForgeFlow changed the title [FIX] base_user_role_profile: use self.env in session_info to support nodb authenticate [18.0][FIX] base_user_role_profile: use self.env in session_info to support nodb authenticate Jun 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:base_user_role_profile Module base_user_role_profile series:18.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants