- /
- Odoo OWL/
- How to Create and Inherit Field Widgets Using OWL Framework
In this tutorial, you will learn how to create new field widgets in Odoo from scratch and how to inherit existing field widgets from Odoo.
You will learn how to inherit the email field widget easily by adding a warning message if the user entered an invalid email address. Since it's an invalid email, the link in opening a new email from the mail client will be hidden.
Then you will learn how to modify the style of field widgets by adding classes and use SCSS file. Sometimes it's not enough to inherit only the field widget and we need to create a new template and pass the field widget as a component.
Lastly, you will learn how to create a new field widget from scratch. We will know that there are standard field props needed for new field widgets which you can easily import without creating them again.
To learn more, kindly check the video below.