Prerequisites:
- you are working as the default user (usually this is "ubuntu")
- create a folder "transfer" in your home directory:
ubuntu@ip-192-168-110-106:~$ mkdir transfer
- locate your Odoo-Home directory, if you are using Odoo's package install, then your Odoo-Home is located here: "/usr/lib/python3/dist-packages/odoo". If you use another installation method, which is not recommended if you need to follow this post, then check your installation.
- create a folder for your custom or third-party apps at "Odoo-Home/custom/addons". Make sure you have specified this folder as addon-path in your odoo.conf file. Or use the addons folder of your odoo.conf file, if you have already specified and implemented it.
STEP 1
Use ssh or any similar tool (WinSCP or Filezilla for example) to transfer your module to your transfer folder "/home/ubuntu/transfer". Unzip it before the transfer or afterwards, but then delete the .zip archive file afterwards.
STEP 2
Create a bash-file (or use the following commands manually), such as "install_modules.sh" for example to move the module(s) from "/home/ubuntu/transfer" to "Odoo-Home/custom/addons" (replace Odoo-Home with your proper path) and to ensure proper permissions and access rights.
#!/bin/bash
sudo rsync -a /home/ubuntu/transfer/ /Odoo-Home/custom/addons/
sudo rm -rf /home/ubuntu/transfer/*
sudo chown -R root:odoo /Odoo-Home/custom/addons/
sudo find /Odoo-Home/custom/addons/ -type d -exec chmod 755 {} \;
sudo find /Odoo-Home/custom/addons/ -type f -exec chmod 644 {} \;
Save the file and execute it from your home directory by using the command
ubuntu@ip-192-168-110-106:~$ sh install_modules.sh
Happy installing!
Please read the documentation about installing and deploying Odoo (www.odoo.com/documentation) carefully until you have understood it.