OCA / web

Odoo web client UI related addons
GNU Affero General Public License v3.0
900 stars 1.85k forks source link

[16.0][ADD] web_widget_pattern #2806

Closed hbrunn closed 2 months ago

hbrunn commented 2 months ago

This module allows to use patterns in text fields in the backend.

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.

OCA-git-bot commented 2 months ago

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

dreispt commented 2 months ago

/ocabot merge nobump

OCA-git-bot commented 2 months ago

On my way to merge this fine PR! Prepared branch 16.0-ocabot-merge-pr-2806-by-dreispt-bump-nobump, awaiting test results.

OCA-git-bot commented 2 months ago

Congratulations, your PR was merged at 0e1de5c2bd1bb7a466eb96471559138f5abcc002. Thanks a lot for contributing to OCA. ❤️