I am trying to add validation to email and phone field. I used widget = "phone" but it doesn't have any difference. The user still can store any data they want, no matter whether it's a number or not. I tried to download Inputmask module to verify the phone number but it still doesn't work and there is no error message showed from the developer tool. Can anyone tell me why it doesn't work?
<field widget="mask" data-inputmask-alias="phone" name="phone" />
<field name="mobile" widget="phone"/>
<field name="email" widget="regex_mask" data-inputmask-regex="[a-zA-Z0-9._%-]+@[a-zA-Z0-9-]+\.[a-zA-Z]{2,4}" context="{'gravatar_image': True}" attrs="{'required': [('user_ids','!=', [])]}"/>
I tried to install all necessary packages but it still doesn't work right now. The only change is there is no error about phonenumber but still get the error message below:
Flanker is not compatible with Python 3, email validation has been disabled
Phone Widget in Odoo: https://learnopenerp.blogspot.com/2022/05/how-to-use-phone-email-and-url-widget-in-odoo-15.html