oca-web/odoo-bringout-oca-web-web_widget_pattern/web_widget_pattern/readme/USAGE.md
Ernad Husremovic 53fddf87c8 Add oca-web submodule with 68 web modules
🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-30 17:27:15 +02:00

304 B

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.