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

Odoo - Custom Addons Settings and New Module Creation

Odoo - Custom Addons Settings and New Module Creation

Artikel ini dibukukan pada buku Odoo ERP Development
access_time 21 January 2025 remove_red_eye 1948 Kali spellcheck 142 Kata, 976 Karakter
#odoo

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/


Artikel ini dibukukan pada buku Odoo ERP Development
Navigasi Konten