Manage model export profiles
base_export_manager · OCA/server-ux
OCA/server-tools 8.0–10.0 → OCA/server-ux 11.0–19.0
Health
80/100
good
-
Security25/25No findings
-
Activity25/25Human commit this month
-
Required by5/250 modules depend on it
-
Maturity25/25In 12 Odoo series since 8.0
Heuristic over the facts below, not an audit · How it's computed
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.41 MB
Module directory on disk
Code analysis
0 migration notes
5 models
7 views
0 HTTP endpoints
Description
This module extends the export capability:
- It allows an admin to manage export profiles (
ir.exports) that Odoo stores internally but does not show anywhere. - It also adds a new column to access rights to enable/disable export and override the export method to check if the user is allowed to export. Export is enabled by default.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 7
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
ir_exports_form_view |
Export Profile form | ir.exports | form | New |
ir_exports_tree_view |
Export Profile tree | ir.exports | list | New |
ir_model_access_view_form |
ir.model.access.form.base_export_manager | ir.model.access | form | Inherits base.ir_access_view_form |
ir_model_access_view_tree |
ir.model.access.list.base_export_manager | ir.model.access | list | Inherits base.ir_access_view_tree |
ir_model_access_view_tree_edition |
ir.model.access.list.edition.base_export_manager | ir.model.access | list | Inherits base.ir_access_view_tree_edition |
ir_model_view_form |
ir.model.form.base_export_manager | ir.model | form | Inherits base.view_model_form |
res_groups_view_form |
res.groups.form | res.groups | form | Inherits base.view_groups_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 5
New fields (3)
-
model_idMany2one → ir.modelcompute='_compute_model_id'compute_sudo=Truedomain=[('transient', '=', False)]help='Database model to export.'inverse='_inverse_model_id'store=True args: 'ir.model' -
nameCharrequired=True -
resourceCharhelp="Model's technical name."readonly=True
-
create(self, vals_list)@api.model_create_multiCheck required values when creating the record. Odoo's export dialog populates ``resource``, while this module's new form populates ``model_id``. At least one of them is required to trigger the methods that fill up the other, so this should fail if one is missing.
New fields (11)
-
field1_idMany2one → ir.model.fieldsdomain="[('model_id', '=', model1_id)]" args: 'ir.model.fields', 'First field' -
field2_idMany2one → ir.model.fieldsdomain="[('model_id', '=', model2_id)]" args: 'ir.model.fields', 'Second field' -
field3_idMany2one → ir.model.fieldsdomain="[('model_id', '=', model3_id)]" args: 'ir.model.fields', 'Third field' -
field4_idMany2one → ir.model.fieldsdomain="[('model_id', '=', model4_id)]" args: 'ir.model.fields', 'Fourth field' -
labelCharcompute='_compute_label'compute_sudo=True -
model1_idMany2one → ir.modelreadonly=Truerelated='export_id.model_id'related_sudo=True args: 'ir.model', 'First model' -
model2_idMany2one → ir.modelcompute='_compute_model2_id'compute_sudo=True args: 'ir.model', 'Second model' -
model3_idMany2one → ir.modelcompute='_compute_model3_id'compute_sudo=True args: 'ir.model', 'Third model' -
model4_idMany2one → ir.modelcompute='_compute_model4_id'compute_sudo=True args: 'ir.model', 'Fourth model' -
nameCharcompute='_compute_name'compute_sudo=Truehelp="Field's technical name."inverse='_inverse_name'store=True -
sequenceInteger
-
field_n(self, n, only_name=False)Helper to choose the field according to its indentation level. :param int n: Number of the indentation level to choose the field, from 1 to 3. :param bool only_name: Return only the field name, or return its value. -
model_n(self, n, only_name=False)Helper to choose the model according to its indentation level. :param int n: Number of the indentation level to choose the model, from 1 to 3. :param bool only_name: Return only the model name, or return its value.
New fields (0)
No new fields.
Public methods (1)-
session_info(self)Odoo implementation doesn't allow add more access types, so we send all models where the user has the 'export' access over the session dictionary. TODO: Use other way to don't send all this data every time.
New fields (1)
-
perm_exportBooleandefault=True args: 'Export Access'
No public methods.
New fields (0)
No new fields.
Public methods (1)-
fetch_export_models(self)@api.modelGets all models where the user has export access.
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…