| REPOSITORY | |
|---|---|
| REPOSITORY | OCA/server-tools |
| GIT | |
| GIT | https://github.com/OCA/server-tools.git |
| GIT FOLDER | |
| GIT FOLDER | https://github.com/OCA/server-tools/tree/8.0/base_field_validator |
| VERSION | |
| VERSION | 1.0.0 |
| CATEGORY | |
| CATEGORY | Tools |
| LICENSE | |
| LICENSE | AGPL-3 |
| APPLICATION | |
| APPLICATION | No |
| AUTO-INSTALLABLE | |
| AUTO-INSTALLABLE | No |
| AUTHORS | |
| AUTHORS | Odoo Community Association (OCA), Agile Business Group |
| MAINTAINERS | |
| MAINTAINERS | Odoo Community Association (OCA), Agile Business Group |
| COMMITTERS | |
| COMMITTERS | eLBati, GitHub, OCA Transbot, oca-travis, Weblate |
| WEBSITE | |
| WEBSITE | http://www.agilebg.com |
| LAST TRACKING UPDATE | |
| LAST TRACKING UPDATE | 2026-07-06 00:11:25 |
| ODOO DEPENDENCIES | |
| ODOO DEPENDENCIES |
odoo/odoo: - base |
| PYTHON DEPENDENCIES | |
| PYTHON DEPENDENCIES | Not have |
| SYSTEM DEPENDENCIES | |
| SYSTEM DEPENDENCIES | Not have |
| DESCRIPTION | |
| DESCRIPTION | |
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_model_form_validator |
ir.model | notebook | Inherits base.view_model_form |
validator_line_ids
One2many → ir.model.validator.line
check_vals(self, vals, model_name)
create(self, cr, uid, vals, context=None)
write(self, cr, uid, ids, vals, context=None)
name
Char
required=True
args: 'Description'
regex
Char
help=<expr>
required=True
args: 'Regular Expression'
No public methods.
field_id
Many2one → ir.model.fields
required=True
args: 'ir.model.fields', 'Field'
model_id
Many2one → ir.model
required=True
string='Model'
args: 'ir.model'
regex_id
Many2one → ir.model.fields.regex
required=True
string='Validator'
args: 'ir.model.fields.regex'
No public methods.
| REPOSITORY | |
|---|---|
| REPOSITORY | OCA/server-tools |
| GIT | |
| GIT | https://github.com/OCA/server-tools.git |
| GIT FOLDER | |
| GIT FOLDER | https://github.com/OCA/server-tools/tree/7.0/base_field_validator |
| VERSION | |
| VERSION | 0.1 |
| CATEGORY | |
| CATEGORY | Tools |
| LICENSE | |
| LICENSE | AGPL-3 |
| APPLICATION | |
| APPLICATION | No |
| AUTO-INSTALLABLE | |
| AUTO-INSTALLABLE | No |
| AUTHORS | |
| AUTHORS | Agile Business Group |
| MAINTAINERS | |
| MAINTAINERS | Agile Business Group |
| COMMITTERS | |
| COMMITTERS | eLBati |
| WEBSITE | |
| WEBSITE | http://www.agilebg.com |
| LAST TRACKING UPDATE | |
| LAST TRACKING UPDATE | 2026-07-06 00:07:15 |
| ODOO DEPENDENCIES | |
| ODOO DEPENDENCIES |
odoo/odoo: - base |
| PYTHON DEPENDENCIES | |
| PYTHON DEPENDENCIES | Not have |
| SYSTEM DEPENDENCIES | |
| SYSTEM DEPENDENCIES | Not have |
| DESCRIPTION | |
| DESCRIPTION | Fields Validator ================ This module allows to set a regular expression as field validator. When the regular expresion is set, write and create operations on the involved field are blocked, if the regular expression is not satisfied. See demo and test data for an example with partner email. Configuration ============= Open ir.model form (say res.partner) and add 'Validators' lines Known issues / Roadmap ====================== The module performs the check at server side. Client side check is also needed, to improve user experience and avoid server calls when unnecessary Credits ======= Contributors ------------ * Lorenzo Battistini <lorenzo.battistini@agilebg.com> * Nicola Malcontenti <nicola.malcontenti@agilebg.com> Maintainer ---------- .. image:: http://odoo-community.org/logo.png :alt: Odoo Community Association :target: http://odoo-community.org This module is maintained by the OCA. OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use. To contribute to this module, please visit http://odoo-community.org. |
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_model_form_validator |
ir.model | notebook | Inherits base.view_model_form |
No new fields.
Public methods (3)check_vals(self, cr, uid, vals, model, context=None)
create(self, cr, uid, vals, context=None)
write(self, cr, uid, ids, vals, context=None)
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.