Web Custom Modifier
web_custom_modifier · OCA/web
Health
41/100
poor
-
Security25/25No findings
-
Activity6/25Last human commit 34 months ago
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 14.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
LGPL-3
No conflicts with its dependencies
Folder size
1.63 MB
Module directory on disk
Code analysis
2 migration notes
3 models
2 views
0 HTTP endpoints
Migration considerations
custom_modifier_list— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · sourcecustom_modifier_list— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
This module allows to customize modifiers on form and tree view nodes.
For example, it allows to make a field readonly, invisible or required.
Dependencies
- Odoo dependencies
-
odoo/odoo:- base
- 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 2
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
custom_modifier_list |
Custom Modifier List View | web.custom.modifier | tree | New |
custom_modifier_search |
Custom Modifier Search View | web.custom.modifier | search | New |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 3
New fields (0)
No new fields.
Public methods (1)-
fields_get(self, allfields=None, attributes=None)@api.modelAdd the custom modifiers to the fields metadata.
New fields (0)
No new fields.
Public methods (1)-
postprocess(self, node, current_node_path, editable, name_manager)Add custom modifiers to the view xml. This method is called in Odoo when generating the final xml of a view.
New fields (7)
-
activeBooleandefault=True -
excluded_group_idsMany2many → res.groupsargs: 'res.groups', 'web_custom_modifier_excluded_group_rel', 'modifier_id', 'group_id', 'Excluded Groups' -
keyChar -
model_idsMany2many → ir.modelargs: 'ir.model', 'ir_model_custom_modifier', 'modifier_id', 'model_id', 'Model' -
modifierSelectionrequired=True args: [('invisible', 'Invisible'), ('column_invisible', 'Invisible (List Views)'), ('readonly', 'Readonly'), ('force_save', 'Force Save'), ('required', 'Required'), ('selection_hide', 'Hide Selection Item'), ('widget', 'Widget'), ('limit', 'Number of lines per page (List Views)'), ('optional', 'Optional')] -
referenceCharrequired=True -
type_Selectiondefault='field'required=Truestring='Type' args: [('field', 'Field'), ('xpath', 'Xpath')]
-
create(self, vals)@api.model -
get(self, model) -
unlink(self) -
write(self, vals)