You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
oca-travis 04183e2b57 [UPD] Update base_field_validator.pot 6 years ago
..
data moving email regex to module data and adding unique constraint 9 years ago
demo moving email regex to module data and adding unique constraint 9 years ago
i18n [UPD] Update base_field_validator.pot 6 years ago
models [FIX] base_field_validator: Remove redundant import 8 years ago
security [REF] module renamed to base_field_validator 9 years ago
static/description IMP description and message 9 years ago
test moving email regex to module data and adding unique constraint 9 years ago
views IMP dir struct and copyright 9 years ago
README.rst IMP description, size param and check_vals 9 years ago
__init__.py FIX copyright header 9 years ago
__openerp__.py moving email regex to module data and adding unique constraint 9 years ago

README.rst

.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3


================
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


Usage
=====

.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/149/8.0


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

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/server-tools/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed feedback
`here <https://github.com/OCA/server-tools/issues/new?body=module:%20base_field_validator%0Aversion:%208.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.


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.