| REPOSITORY | |
|---|---|
| REPOSITORY | OCA/web |
| GIT | |
| GIT | https://github.com/OCA/web.git |
| GIT FOLDER | |
| GIT FOLDER | https://github.com/OCA/web/tree/7.0/web_warning_on_save |
| VERSION | |
| VERSION | 1.0 |
| CATEGORY | |
| CATEGORY | Uncategorized |
| LICENSE | |
| LICENSE | AGPL-3 |
| APPLICATION | |
| APPLICATION | No |
| AUTO-INSTALLABLE | |
| AUTO-INSTALLABLE | No |
| AUTHORS | |
| AUTHORS | Odoo Community Association (OCA), Camptocamp |
| MAINTAINERS | |
| MAINTAINERS | Odoo Community Association (OCA), Camptocamp |
| COMMITTERS | |
| COMMITTERS | GitHub, Stéphane Bidoul (ACSONE), Pierre Verkest, OCA Transbot, Damien Crier |
| WEBSITE | |
| WEBSITE | http://www.camptocamp.com |
| LAST TRACKING UPDATE | |
| LAST TRACKING UPDATE | 2026-07-06 00:07:15 |
| ODOO DEPENDENCIES | |
| ODOO DEPENDENCIES |
odoo/odoo: - web |
| PYTHON DEPENDENCIES | |
| PYTHON DEPENDENCIES | Not have |
| SYSTEM DEPENDENCIES | |
| SYSTEM DEPENDENCIES | Not have |
| DESCRIPTION | |
| 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
|
No views found for this module.
No models found for this module.