We will use the scaffold command to create boilerplate code. Follow the given steps to create new a module using the scaffold command:
- Change the working directory to where we will want our module to be. This can be whatever directory you choose, but it needs to be within an add-on path to be useful. Following the directory choices that we used in the previous recipe, it should be as follows:
$ cd ~/odoo-dev/local-addons
- Choose a technical name for the new module, and use the scaffold command to create it. For our example, we will choose my_module:
$ ~/odoo-dev/odoo/odoo-bin scaffold my_module
- Edit the __manifest__.py default module manifest provided and change the relevant values. You will surely want to at least change ...