Web warning on save
web_warning_on_save · OCA/web
Health
35/100
poor
-
Security25/25No findings
-
Activity0/25Last human commit 124 months ago
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 7.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.01 MB
Module directory on disk
Code analysis
3 migration notes
0 models
0 views
0 HTTP endpoints
Migration considerations
- Migrating to 19.0: only `__manifest__.py` is recognized: a module with `__openerp__.py` is not detected at all. migration-openerp-manifest · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) migration-openerp-import · 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 was written to extend the functionality of
saving a record in the web interface.
.. warning::
In no way this module stops the save of the record.
You must consider this as a warning displayed
to the user AFTER save completed.
If you don't want OpenERP to save the record, you should use constraints.
Usage
=====
To use this module, you need to:
* write a method called 'check_warning_on_save' which will make some checks
and return a string
example :
def check_warning_on_save(self, cr, uid, id, context=None):
'''
@param: int: record_id
@return: string: message that should be displayed to the user
'''
res = ""
record = self.browse(cr, uid, id, context=context)
# ... make some checks
return res
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 0
No models found for this module.