Optional CSV import
base_import_security_group · OCA/server-ux
OCA/server-tools 8.0–10.0 → OCA/server-ux 11.0–18.0
-
Security25/25No findings
-
Activity12/25Last human commit 20 months ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 10 Odoo series since 8.0
Heuristic over the facts below, not an audit · How it's computed
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.
Dependencies
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- None
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 0
No views found for this module.
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 2
No new fields.
Public methods (1)-
load(self, fields, data)@api.modelOverriding 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.
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…
Loading…