Use [] to find tag! Example: [flutter, javascript]

Odoo ERP Development
Odoo ERP Development

Chapter 2

Custom Addons Settings and New Module Creation

remove_red_eye 1082 Times
spellcheck 142 Words, 976 Characters
*Note: this book is still ongoing until it has a finished label.

In developing applications using the Odoo framework, we must understand the shortcuts that we can use to make things easier for us. Here are some shortcuts that you must know to create a module.

Adding a Custom Addons Folder

If we want to develop our own module, it would be a good idea to create a folder for our own modules for the sake of scalability of our application. Here are the steps:

1. Create a new folder to accommodate custom addons later. The location is free wherever you want, but my suggestion is in the root of your project folder.

2. Open your odoo.conf  file

3. Change the add path to the addon_path variable at the end. Note: addon_path uses comma (,) separator

example:

[options]
addons_path = path_to_odoo_addons,path_to_addons,path_to_custom_addons_you

Creating a New Module

To create a new module, we can use the file odoo-bin  in the root folder with the following command line:

./odoo-bin scaffold your_module_name addons_path/


Next Article (VS Code Configuration)
Content Navigation