In this article, you will learn how to install python packages automatically with the installation of Odoo Modules.
For example, if we have created an Odoo module that uses python packages, then it will raise an error on installation. This error occurs due to system does not find the required python packages which an Odoo module needs.
Read More: How to Create Custom Modules in Odoo8
Install Python Libraries on Installation of Odoo Modules
To overcome this issue we need to install Python packages automatically when we install the Odoo Module. Below is the step-by-step guide you need to follow.
Read More: How to Create Custom Modules in Odoo13
- Create a python file in your Odoo module and name it "setup.py".
- Copy below code snippet in the above file.
- Register your newly created python file "setup.py" in __init.py__ file.
0 Comments