Adding a menu item and window actions
The most obvious way to make a new feature available to users is by adding a menu item. When you click on a menu item, something happens. This recipe walks you through how to define that something.
We will create a top-level menu and its sub-menu, which will open a list of all customers.
This can also be done using the web user interface, through the settings menu, but we prefer to use XML data files since this is what we'll have to use when creating our add-on modules.
Getting ready
In this recipe, we will need a module with a dependency on the account
module, as the account module adds new fields to the res.partner
model to differentiate between customer and supplier records. So, if you are using an existing module, please add the account
dependency in the manifest. Alternatively, you can grab the initial module from https://github.com/PacktPublishing/Odoo-14-Development-Cookbook-Fourth-Edition/tree/master/Chapter09/00_initial_module...