Skip to content

[FIX][18.0] connector_importer: allow sudo for the user to access ir.ui.view model#171

Open
yankinmax wants to merge 1 commit intoOCA:18.0from
camptocamp:fix-rights-connector_importer
Open

[FIX][18.0] connector_importer: allow sudo for the user to access ir.ui.view model#171
yankinmax wants to merge 1 commit intoOCA:18.0from
camptocamp:fix-rights-connector_importer

Conversation

@yankinmax
Copy link
Contributor

@yankinmax yankinmax commented Oct 10, 2025

To access ir.ui.view model records the user should have Administration\Settings::base.group_system group assigned.
While the connector.group_connector_manager and connector_importer.group_importer_user don't have such rights.

To reproduce:

  1. Go to "Import recordsets" => "Import recordset" => click "Configure source" button.
  2. The open_source_config method calls get_config_view_id to fetch the requested view.
  3. An access error is raised.
odoo.http: You are not allowed to access 'View' (ir.ui.view) records.
This operation is allowed for the following groups:
	- Administration/Settings

@OCA-git-bot
Copy link
Contributor

Hi @simahawk,
some modules you are maintaining are being modified, check this out!

@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants