Search Here

Install Python Packages Automatically on Installation of Odoo Modules

 In this article, you will learn how to install python packages automatically with the installation of Odoo Modules.

Install Python Packages Automatically on 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

  1. Create a python file in your Odoo module and name it "setup.py".
  2. Copy below code snippet in the above file.
  3. Register your newly created python file "setup.py" in __init.py__ file.


How to Install Python Packages using Python Script



Post a Comment

0 Comments