Skip to content
Health
35/100
poor
  • Security25/25
    No findings
  • Activity0/25
    Last human commit 124 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity5/25
    In 1 Odoo series since 7.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
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

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.