TIP: You can type at any time to perform a new search.
Web Custom Modifier
web_custom_modifier · OCA/web
- Repository
- OCA/web · module folder · Try on Runboat
- Module version
- 2.0.1
- Category
- Project
- Folder size
- 1.63 MB
- License
- LGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/web
- Last tracking update
- 2026-08-07 07:47:29
- Authors
- Odoo Community Association (OCA), Numigi
- Maintainers
- Numigi
- Committers
- Weblate, OCA-git-bot, oca-ci, Abdellatif Benzbiria
- Odoo dependencies
-
odoo/odoo:- base
- Python dependencies
- None
- System dependencies
- None
- Required by
- None
- 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.
Code Analysis ⓘ
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)