Repository
OCA/server-ux · module folder · Try on Runboat
Module version
1.0.0
Category
Server tools
Folder size
0.05 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/server-ux
Last tracking update
2026-08-07 08:42:52
Authors
Odoo Community Association (OCA), Onestein, Alejandro Santana <alejandrosantana@anubia.es>
Maintainers
Odoo Community Association (OCA)
Committers
Stefan Rijnhart, Weblate, OCA-git-bot, oca-ci
Odoo dependencies
odoo/odoo:
- web
Python dependencies
None
System dependencies
None
Required by
None
Description
This module makes importing data from CSV and Excel files optional for
each user, depending on whether Import CSV/Excel files is ticked on the
Access Rights tab on the user form. This corresponds to a user group by
the same name. Only users that belong to this group will have the Import
records button available under the Actions (cogwheel) icon in the header
of list and kanban views.

If this GUI restriction is circumvented (through a crafted JSONRPC call
for instance), there is another check in the backend to prevent batch
imports by restricted users.

Code Analysis

Views touched (0)

No views found for this module.

HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (2)

New fields (0)

No new fields.

Public methods (1)
  • load(self, fields, data)
    @api.model
    Overriding this method we only allow its execution if current user belongs to the group allowed for CSV data import. An exception is raised otherwise, and also log the import attempt.

New fields (0)

No new fields.

Public methods (1)
  • session_info(self)
    Expose in the env whether the user is allowed to import records

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Status
Open migration PR — not merged yet for this version
CI status
checks failing
Open since
139 days ago
Last activity
0 days ago
Repository
OCA/server-ux
Pull request
[19.0][MIG] base_import_security_group: Migration to 19.0 (#1274)