Odoo has world's biggest third party apps store, where more then 20,000 apps are available with different Open Source License, So when you purchase apps you will get complete source code of apps then we must know how to do Server installation in odoo server.When we purchase any of the third party apps from Odoo app store or we have any other customization module/app, we need to know How to do odoo implementation to configure local server in our odoo server.
Usually There are 3 different kinds of Odoo server:
- 1. On-premise Server or Cloud Server(i.e AWS EC2 cloud) or Digital Ocean or any dedicated
- 2. Local Installation Server
- 3. Odoo.sh Server
1. How to install odoo apps on On-premise Server?
Step:1 Download or Extract the app or module folder(either from .zip, .tar, .tar.gz)
When we purchase any app from odoo app store, we'll get download link of app, So that we can download from that link and easily extract it.
Step:2 Connect your server if possible by sftp/ftp/filezilahttps://winscp.net/eng/docs/guide_connect(this can help)
Step:3 Transfer the app to the server.
3.1 First we have to find the path of the odoo setup(any version) usually the path as like /opt/odoo/openerp/addons or /home/odoo/odoo/openerp/addons
3.2 If you don’t know the path of the odoo, you have to connect to your server via ssh.
Normally, we can connect our server with ssh via following command.
- ssh username@ipaddress or hostname
For more information check the following link:https://kinsta.com/blog/how-to-use-ssh/(this can help)
3.3 Now we can find your odoo setup path by following command:
- locate odoo or whereis odoo or find odoo
This will give you the path of the odoo and you can also see the addons under that odoo by putting (path+/openerp/addons) or you can simply make a path of that odoo.
Now you have to transfer the module or odoo app under the addons.
If you are using AWS EC2 and your server is connected with the pem file then use following commands:
- rsync -rave "ssh -i .pem file with path" source directory username@ipaddress:/destination
- for example: rsync -rave "ssh -i example.pem" /home/ubuntu/odoo/workspace/test_app ubuntu@ipaddress:/home/odoo/openerp/addons
If you connected by the sftp you can direct copy and paste the module to the addons path. Otherwise you can use the scp by ssh and copy the module to addons directory.
- scp source_file_path destination_file_path
- scp /home/downloads/module_name user@ipaddress: /opt/odoo/openerp/addons/ (linux)
- scp -vrC ~/Downloads firstname.lastname@example.org:/root/Downloads (windows)
How to find out the odoo service that you are using?
If you don’t know the service name you can go to /etc/init.d/ and see the service name it will either odoo/odoo-server/openerp/openerp-server then you can use above command and restart the Odoo server.
If you still don’t know the service name then you have to reboot the server by following command:
- sudo reboot
Step:4 Need to restart the odoo service.
We have to restart the odoo service that we are using, we can simply use following command:
- sudo service odoo-server restart
Step:5 Install app on odoo url:
Login the odoo url with your database(please first try to install on test db if there is no test db then make the duplicate database by duplicate option under manage database option , if everything works well then install module on live db) Once you logged in then update the module list from the setting in Odoo or go to apps(with debug mode) and update apps list(Odoo enterprise/community version).
2. How to install Odoo apps on local Server?
If we are using local server, we can simply extract our local module followed by above steps till step 4 and then install it in our local server, after that restart the Odoo server.
3. How to install Odoo apps on Odoo.sh Server?
Odoo Sh is the latest and much more improvised version of Odoo released in the Odoo Enterprise category. A full-stack platform, it’s out-of-the-box and will help businesses with top-notch features that will ease the development of an ERP application suite. Some worth mentioning features are database replication, staging servers, email gateways, SSH access, DNS & routes, backup servers, and 24/24 monitoring.
If we are using odoo.sh server, We need to follow given steps to install odoo app/modules in odoo.sh server:
Step:1 Register/Login in Odoo.sh
Step:2 Setup github repository
Step:3 After creating Project from Odoo.sh, Repository will be automatically created in the corresponding github account.
Step:4 Commit the Module to your repository. If you don't have much idea about git, please go through the link:https://confluence.atlassian.com/bitbucketserver/basic-git-commands-776639767.html(go through the link)
Step:5 After successfully committing the module, come back to your Odoo sh home and click on "Connect" button.
Step:6 Once the instance created successfully, it will flagged as "Success". Then database will link will open and you can search and install the module from Apps menu.
If any external library has been used in the module code, then requirements.txt file should be added in the module with library name and version (same as default Odoo requirements.txt file). Once building the instance, Odoo will read the dependencies from the file and install those libraries automatically.