Skip to main content
Odoo Community Association

Input patterns

Alpha License: AGPL-3 OCA/web Translate me on Weblate Try me on Runboat

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

Authors

  • Hunki Enterprises BV

Contributors

Maintainers

This module is maintained by the OCA.

Odoo Community Association

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:

hbrunn

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.

Release files for odoo-addon-web-widget-pattern 18.0.1.0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for odoo-addon-web-widget-pattern 18.0.1.0.0.4
File Interpreter ABI Platform
odoo_addon_web_widget_pattern-18.0.1.0.0.4-py3-none-any.whl Python 3 none any Details

Release files / odoo_addon_web_widget_pattern-18.0.1.0.0.4-py3-none-any.whl

Download URL odoo_addon_web_widget_pattern-18.0.1.0.0.4-py3-none-any.whl
Size 27.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f7eac89ec1f4c1b052e7b6a8d4aaf0d42f4d15c70891ca0effc0eaba7406c0b6
BLAKE2b-256 checksum
How to use checksums
e792707859f8937f28824052994ff1078ebfbaf56307d3a6587b1e1f6da226be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

18.0.1.0.0.4 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page