Allows to define a regex for validating input on the backend
Project description
This module allows to use patterns in text fields in the backend.
Table of contents
Usage
You can either define a pattern in your Python source code on a field as in
my_field = fields.Char(pattern='[0-9]')
or on view level as in
<field name="my_field" pattern="[0-9]" />
Demo data adds a pattern on the street2 field on partner forms to only allow numbers.
Known issues / Roadmap
allow to optionally validate fields against its pattern server side
support text, url, email, phone, … fields
support using a pattern from a computed field
Bug Tracker
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.
Do not contact contributors directly about support or help with technical issues.
Credits
Contributors
Holger Brunn <mail@hunki-enterprises.com> (https://hunki-enteprises.com)
Maintainers
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.
Current maintainer:
This module is part of the OCA/web project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for odoo_addon_web_widget_pattern-16.0.1.0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1db22b72b7b1260c31ef8582c10e46f1f7078f4dd73a3888ff9e062e8f82c6f3 |
|
MD5 | b05ea9a50066e4d31450f7c3a5e08288 |
|
BLAKE2b-256 | 09a6e57b3f65d5f0e12d8bc066a5ed205e21355c0561cda1bff88f868555c18b |