Web warning on save

web_warning_on_save
REPOSITORY
REPOSITORYOCA/web
GIT
GIThttps://github.com/OCA/web.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/web/tree/7.0/web_warning_on_save
VERSION
VERSION 1.0
CATEGORY
CATEGORYUncategorized
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Camptocamp
COMMITTERS
COMMITTERSGitHub, Stéphane Bidoul (ACSONE), Pierre Verkest, OCA Transbot, Damien Crier
WEBSITE
WEBSITEhttp://www.camptocamp.com
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-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
    

Code Analysis

Views touched (0)

No views found for this module.

Models touched (0)

No models found for this module.