For this recipe, we will be using the my_library module from Chapter 4, Creating Odoo Add-On Modules. In this recipe, we are going to add a new field widget that needs dependency of the web module. Make sure that you have added the dependency onweb in the manifest file, like this:
...
'depends': ['base', 'web'],
...