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.

66 lines
2.0 KiB

  1. .. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
  2. :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
  3. :alt: License: AGPL-3
  4. Fields Validator
  5. ================
  6. This module allows to set a regular expression as field validator.
  7. When the regular expresion is set, write and create operations on the involved
  8. field are blocked, if the regular expression is not satisfied.
  9. See demo and test data for an example with partner email.
  10. Configuration
  11. =============
  12. Open ir.model form (say res.partner) and add 'Validators' lines
  13. Usage
  14. =====
  15. .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
  16. :alt: Try me on Runbot
  17. :target: https://runbot.odoo-community.org/runbot/149/8.0
  18. Known issues / Roadmap
  19. ======================
  20. The module performs the check at server side. Client side check is also needed,
  21. to improve user experience and avoid server calls when unnecessary
  22. Bug Tracker
  23. ===========
  24. Bugs are tracked on `GitHub Issues <https://github.com/OCA/server-tools/issues>`_.
  25. In case of trouble, please check there if your issue has already been reported.
  26. If you spotted it first, help us smashing it by providing a detailed and welcomed feedback
  27. `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**>`_.
  28. Credits
  29. =======
  30. Contributors
  31. ------------
  32. * Lorenzo Battistini <lorenzo.battistini@agilebg.com>
  33. * Nicola Malcontenti <nicola.malcontenti@agilebg.com>
  34. Maintainer
  35. ----------
  36. .. image:: http://odoo-community.org/logo.png
  37. :alt: Odoo Community Association
  38. :target: http://odoo-community.org
  39. This module is maintained by the OCA.
  40. OCA, or the Odoo Community Association, is a nonprofit organization
  41. whose mission is to support the collaborative development of Odoo features
  42. and promote its widespread use.
  43. To contribute to this module, please visit http://odoo-community.org.