Confirm/Alert pop-up before saving
web_create_write_confirm · OCA/web
Health
35/100
poor
-
Security25/25No findings
-
Activity0/25Last human commit 38 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
AGPL-3
No conflicts with its dependencies
Folder size
0.05 MB
Module directory on disk
Code analysis
2 migration notes
2 models
3 views
0 HTTP endpoints
Migration considerations
view_popup_message_form— 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 · sourceview_popup_message_tree— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · 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
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 3
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
assets_backend_extension |
assets_backend_extension | ir.ui.view | qweb | Inherits web.assets_backend |
view_popup_message_form |
view.popup.message.form | popup.message | form | New |
view_popup_message_tree |
view.popup.message.tree | popup.message | tree | New |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 2
New fields (0)
No new fields.
Public methods (2)-
get_popup_message_info(self, values=False)Retrieve popup messages' data. - In create self is empty - In write self is not empty contains current ID :param values: - In create dictionary contains all recording information self is False - In write we find only values changed :type values: dict :return: return dict object popup.message (self.env['popup.message'].read()) -
process_popup_message(self, values=False)This function gives us the possibility to execute a specific treatment after the confirmation of the message - In create self is empty - In write self is not empty contains current ID :param values : a list of dictionaries: {'name': field, 'value': value of field} :type dictionary list :return boolean
New fields (8)
-
activeBooleandefault=Truestring='Active' -
field_idsMany2many → ir.model.fieldscomodel_name='ir.model.fields'required=Truestring='Fields' -
field_nameCharcompute='_compute_field_name' -
messageTextrequired=Truestring='Message'translate=True -
modelCharrelated='model_id.model' -
model_idMany2one → ir.modelcomodel_name='ir.model'ondelete='cascade'required=Truestring='Model' -
popup_typeSelectiondefault='confirm'required=Trueselection=[('confirm', 'Confirmation'), ('alert', 'Alert')]string='Type' -
titleCharstring='Title'translate=True
No public methods.