mirror of
https://github.com/bringout/oca-web.git
synced 2026-04-18 15:12:01 +02:00
Add oca-web submodule with 68 web modules
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
af56672c08
commit
53fddf87c8
2469 changed files with 101716 additions and 0 deletions
|
|
@ -0,0 +1,13 @@
|
|||
You can either define a pattern in your Python source code on a field as in
|
||||
|
||||
```python
|
||||
my_field = fields.Char(pattern='[0-9]')
|
||||
```
|
||||
|
||||
or on view level as in
|
||||
|
||||
```xml
|
||||
<field name="my_field" pattern="[0-9]" />
|
||||
```
|
||||
|
||||
Demo data adds a pattern on the street2 field on partner forms to only allow numbers.
|
||||
Loading…
Add table
Add a link
Reference in a new issue