Creating and installing a new add-on module
In this recipe, we will create a new module, make it available in our Odoo instance, and install it.
Getting ready
To begin, we will need an Odoo instance that's ready to use.
If you followed the Easy installation of Odoo from source recipe in Chapter 1, Installing the Odoo Development Environment, Odoo should be available at ~/odoo-dev/odoo
. For explanation purposes, we will assume this location for Odoo, although you can use any other location of your preference.
We will also need a location to add our own Odoo modules. For the purpose of this recipe, we will use a local-addons
directory alongside the odoo
directory, at ~/odoo-dev/local-addons
.