Skip to content
Health
67/100
fair
  • Security25/25
    No findings
  • Activity12/25
    Last human commit 20 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity25/25
    In 10 Odoo series since 8.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.05 MB
Module directory on disk
Code analysis 0 migration notes 2 models 0 views 0 HTTP endpoints

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
odoo/odoo:
- web
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

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…

Loading…