Odoo Aide

0

0
4 Réponses
1
Avatar

Ermin Trevisan Suisse

--Ermin Trevisan--
16180
| 7 6 9
Walchwil, Suisse
--Ermin Trevisan--


Ermin Trevisan Suisse
05/01/2018 03:56

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!

1
Avatar

Nikhil Krishnan Émirats Arabes Unis

--Nikhil Krishnan--
10584
| 7 7 10
Sharjah, Émirats Arabes Unis
--Nikhil Krishnan--

-- Nikhilkrishnan --

Exploring new ways in odoo..!
And want to become a key to the new odoo trends.

-> Odoo Consultancy,
-> Functional and Technical Consultant,
-> Requirement Collection and Analysis,
-> Module Customization,
-> Odoo ERP Community Contributor,
-> Handling ERP/Odoo projects,
-> ERP Workshop Facilitator.
Feel happy working with best and good supporting team.

#PITS Family

Nikhil Krishnan

nikhilkrishnan0101@gmail.com

Nikhil Krishnan Émirats Arabes Unis
05/01/2018 03:33
sudo mkdir /../../odoo/<custom_addons> 
sudo chown -R odoo:odoo /../../odoo/<custom_addons>

Hi Patrick Strzempek,

Use these comments, 
to create and give permission, add your custom modules to this folder and try again.

For more reference 
https://www.cybrosys.com/blog/how-to-install-custom-modules-in-odoo 

0
Patrick Strzempek Nouvelle Calédonie (France)
07/01/2018 16:56

Hi,

Thank's for all of your answers, Your explanations helped me to realize this custom module installation.

to sum up :

The more simply method I use, is to change all right for all folder after /odoo/... :

sudo chown -R odoo:odoo /../../odoo/custom/addons

for :

sudo chown -R <user>:<user> /../../odoo/custom/addons

I load my zip file in my custom folder, unzip file.

do not forget to restore rights such as originally, otherwise Odoo does not work :
sudo chown -R odoo:odoo /../../odoo/custom/addons

Thank's

Patrick



1 Commentaires
ARTUS Informatique, Patrick Strzempek Nouvelle Calédonie (France)
09/01/2018 23:14

Sorry don't use this way... problem to change POS

Poser une question
Keep Informed
1 Abonné(e)s
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register
Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now