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 the 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
.
You can upload your own Odoo modules on GitHub and clone them on your local system for development purposes.
How to do it...
As an example, for this chapter, we will create a small add-on module to manage a hostel.
The following steps will create and install a new...