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.

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