Skip to Content
Odoo Menu
  • Log ind
  • Prøv gratis
  • Apps
    Økonomi
    • Bogføring
    • Fakturering
    • Udgifter
    • Regneark (BI)
    • Dokumenter
    • e-Signatur
    Salg
    • CRM
    • Salg
    • POS Butik
    • POS Restaurant
    • Abonnementer
    • Udlejning
    Hjemmeside
    • Hjemmesidebygger
    • e-Handel
    • Blog
    • Forum
    • LiveChat
    • e-Læring
    Forsyningskæde
    • Lagerbeholdning
    • Produktion
    • PLM
    • Indkøb
    • Vedligeholdelse
    • Kvalitet
    HR
    • Medarbejdere
    • Rekruttering
    • Fravær
    • Medarbejdersamtaler
    • Anbefalinger
    • Flåde
    Marketing
    • Markedsføring på sociale medier
    • E-mailmarketing
    • SMS-marketing
    • Arrangementer
    • Automatiseret marketing
    • Spørgeundersøgelser
    Tjenester
    • Projekt
    • Timesedler
    • Udkørende Service
    • Kundeservice
    • Planlægning
    • Aftaler
    Produktivitet
    • Dialog
    • Godkendelser
    • IoT
    • VoIP
    • Vidensdeling
    • WhatsApp
    Tredjepartsapps Odoo Studio Odoo Cloud-platform
  • Brancher
    Detailhandel
    • Boghandel
    • Tøjforretning
    • Møbelforretning
    • Dagligvarebutik
    • Byggemarked
    • Legetøjsforretning
    Mad og værtsskab
    • Bar og pub
    • Restaurant
    • Fastfood
    • Gæstehus
    • Drikkevareforhandler
    • Hotel
    Ejendom
    • Ejendomsmægler
    • Arkitektfirma
    • Byggeri
    • Ejendomsadministration
    • Havearbejde
    • Boligejerforening
    Rådgivning
    • Regnskabsfirma
    • Odoo-partner
    • Marketingbureau
    • Advokatfirma
    • Rekruttering
    • Audit & certificering
    Produktion
    • Tekstil
    • Metal
    • Møbler
    • Fødevareproduktion
    • Bryggeri
    • Firmagave
    Heldbred & Fitness
    • Sportsklub
    • Optiker
    • Fitnesscenter
    • Kosmetolog
    • Apotek
    • Frisør
    Håndværk
    • Handyman
    • IT-hardware og support
    • Solenergisystemer
    • Skomager
    • Rengøringsservicer
    • VVS- og ventilationsservice
    Andet
    • Nonprofitorganisation
    • Miljøagentur
    • Udlejning af billboards
    • Fotografi
    • Cykeludlejning
    • Softwareforhandler
    Gennemse alle brancher
  • Community
    Få mere at vide
    • Tutorials
    • Dokumentation
    • Certificeringer
    • Oplæring
    • Blog
    • Podcast
    Bliv klogere
    • Udannelselsesprogram
    • Scale Up!-virksomhedsspillet
    • Besøg Odoo
    Få softwaren
    • Download
    • Sammenlign versioner
    • Udgaver
    Samarbejde
    • Github
    • Forum
    • Arrangementer
    • Oversættelser
    • Bliv partner
    • Tjenester til partnere
    • Registrér dit regnskabsfirma
    Modtag tjenester
    • Find en partner
    • Find en bogholder
    • Kontakt en rådgiver
    • Implementeringstjenester
    • Kundereferencer
    • Support
    • Opgraderinger
    Github Youtube Twitter LinkedIn Instagram Facebook Spotify
    +1 (650) 691-3277
    Få en demo
  • Prissætning
  • Hjælp

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Bogføring
  • Lager
  • PoS
  • Projekt
  • MRP
All apps
Du skal være registreret for at interagere med fællesskabet.
All Posts People Emblemer
Tags (View all)
odoo accounting v14 pos v15
Om dette forum
Du skal være registreret for at interagere med fællesskabet.
All Posts People Emblemer
Tags (View all)
odoo accounting v14 pos v15
Om dette forum
Hjælp

How to install odoo12 step by step not by using any script.

Tilmeld

Få besked, når der er aktivitet på dette indlæg

Dette spørgsmål er blevet anmeldt
installationstepsodoo12
9 Besvarelser
12410 Visninger
Avatar
Pallavi

Hi,

I want to install odoo12 but not by using any script. Could anyone provide me the step by step process to install odoo12 without any script

Thanks in advance!

0
Avatar
Kassér
Sehrish

How to install odoo: https://goo.gl/vjzEoH

Avatar
Ermin Trevisan
Bedste svar

You may also want to read the official directions of Odoo at Odoo Documentation

1
Avatar
Kassér
Yenthe Van Ginneken (Mainframe Monkey)

I've slightly improved your link but this is the good answer :)

Avatar
Hilar Andikkadavath
Bedste svar

Here I am Sharing the Step By Step procedure of ODOO 11 Installation. Change the version and dependency accordingly.


If Python is already installed, make sure it is 3.5 or above that, previous versions are not compatible with Odoo 11

Open the terminal and execute below commands step-by-step to achieve excellence:

Step 1: 

Update apt source-lists:

sudo apt-get update

Step 2: 

Create the Odoo user that will own and run the application

sudo adduser --system --home=/opt/odoo --group odoo

Step 3: 

Install and configure the database server, PostgreSQL

sudo apt-get install -y postgresql postgresql-contrib

Once the PostgreSQL is installed, next we set up a new PostgreSQL user for our application. This user will be used for making all the database interaction from the Odoo.

sudo service postgresql start

sudo su - Postgres

createuser --createdb --username postgres --no-createrole --no-superuser --pwprompt odoo
Enter password for new role: *****
Enter it again:*****

Finally exit from the Postgres user account:

exit


FIX 2: Check if your PostgreSQL has proper encoding(UTF-8) or not, used in Odoo Application, if not you can do like this:


sudo su - postgres
psql
update pg_database set encoding = pg_char_to_encoding('UTF8');
\q
exit

FIX 3: Set The Locale To UTF-8 For Python 3, if you are getting UnicodeEncodeError /UnicodeDecodeError, you can fix it, as You can also check this LINK

Directly execute these commands:

locale-gen en_US.UTF-8

export LANG=en_US.UTF-8 LANGUAGE=en_US.en LC_ALL=en_US.UTF-8

FIX 4: In PostgreSQL, allow TCP connection, if you are getting error like:

psycopg2.OperationalError: FATAL: Peer authentication failed for user

To fix it,in /etc/postgresql/9.5/main/pg_hba.conf change peer to md5:

# "local" is for Unix domain socket connections only
local     all all     peer md5

Then

sudo service postgresql restart

Step 5: 

Install the necessary Python libraries & other needed libraries needed for the application:

Odoo 11 will use python 3.5(which is pre-installed on our Ubuntu), previously it uses python 2.7, so to install all dependent libraries easily we`ll install pip3 in our server, as:

sudo apt-get install -y python3-pip

Once pip3 is installed on your server, we can proceed with installing other dependent libraries using pip3 as:

pip3 install Babel decorator docutils ebaysdk feedparser gevent greenlet html2text Jinja2 lxml Mako MarkupSafe mock num2words ofxparse passlib Pillow psutil psycogreen psycopg2 pydot pyparsing PyPDF2 pyserial python-dateutil python-openid pytz pyusb PyYAML qrcode reportlab requests six suds-jurko vatnumber vobject Werkzeug XlsxWriter xlwt xlrd Pypdf2

or after cloning ODOO Source in step 6 do:

pip3 install wheel
pip3 install -r path_to_odoo_folder_source/requirements.txt

Next is to install Odoo Web Dependencies:

sudo apt-get install -y npm
sudo ln -s /usr/bin/nodejs /usr/bin/node
sudo npm install -g less less-plugin-clean-css
sudo apt-get install -y node-less

Once all the packages are installed we are ready to proceed with installing Odoo server.


Step 6:

Installing ODOO version 11 Community Edition hosted on GITHUB.

Make sure you have GIT installed on your system and if not then install with the simple command:

sudo apt-get install -y git

Switch to the Odoo user:

sudo su - odoo -s /bin/bash

Clone the latest branch of Odoo, in our case it is 11.0 from Github:

git clone https://www.github.com/odoo/odoo --depth 1 --branch 11.0 --single-branch .

(This might take a little while depending on the speed of your Internet connection.)

Finally exit from the odoo user account:

exit

Step 7:

The next step is to create a configuration file for Odoo. But before doing so we'll first create the directory for storing logs of Odoo server and assigning proper ownership to the directory:

sudo mkdir /var/log/odoo

sudo chown odoo:root /var/log/odoo

Next is to create the configuration file for the odoo server. Odoo application will use these configurations to run so fill in the configuration as per your requirements.

sudo nano /etc/odoo-server.conf

A sample configuration file will look like this:

[options]
; This is the password that allows database operations:
; admin_passwd = admin
db_host = False
db_port = False
db_user = odoo
db_password = False
logfile = /var/log/odoo/odoo-server.log
addons_path = /opt/odoo/addons,/opt/odoo/odoo/addons

(* You need to use the same password you used back in step 3.)

Once the configuration file is created we will set the ownership rights

sudo chown odoo: /etc/odoo-server.conf
sudo chmod 640 /etc/odoo-server.conf

Create a systemd unit file
To run odoo as a service we will create an odoo11.service unit file in the /etc/systemd/system/ directory with the following contents:

[Unit]
Description=Odoo11
Requires=postgresql.service
After=network.target postgresql.service

[Service]
Type=simple
SyslogIdentifier=odoo11
PermissionsStartOnly=true
User=odoo
Group=odoo
ExecStart=/opt/odoo/odoo11-venv/bin/python3 /opt/odoo/odoo11/odoo-bin -c /etc/odoo11.conf
StandardOutput=journal+console

[Install]
WantedBy=multi-user.target

Notify systemd that we created a new unit file and start the Odoo service:

sudo systemctl daemon-reload
sudo systemctl start odoo11
check the service status:

sudo systemctl status odoo11

If successful you will get output something like below.

odoo11.service - Odoo11
   Loaded: loaded (/etc/systemd/system/odoo11.service; disabled; vendor preset: enabled)
   Active: active (running) since Thu 2018-05-03 21:23:08 UTC; 3s ago
 Main PID: 18351 (python3)
    Tasks: 4 (limit: 507)
   CGroup: /system.slice/odoo11.service
           └─18351 /opt/odoo/odoo11-venv/bin/python3 /opt/odoo/odoo11/odoo-bin -c /etc/odoo11.conf

if there are no errors you can enable the Odoo service to be automatically started at boot time.

sudo systemctl enable odoo11
to see the messages logged by the Odoo service you can use:
sudo journalctl -u odoo11

Step 8:

Installing the boot script

For the final step, we need to install a script that will be used to start-up & shut-down the Odoo server automatically, with the correct user.

Please Check The Link.

ODOO BOOT SCRIPT

​ Reference:

 https://www.odoo.com/documentation/13.0/setup/install.html

https://www.postgresql.org/

​https://webkul.com/blog/setup-locale-python3/

2
Avatar
Kassér
Pallavi
Forfatter

Thanks, @Hilar AK

Andre de Kock

Great guide, thanks for sharing

Avatar
Niyas Raphy (Walnut Software Solutions)
Bedste svar

Hi,

There is lot of blogs/writings available over the net on the same, see: How to Install Odoo 12

Thanks

1
Avatar
Kassér
Ermin Trevisan

Why installing on Ubuntu 16.04 and not on Ubuntu 18.04?

Pallavi
Forfatter

Hi Niyas,

I am following the blog for installation but when I execute

"sudo tail -f /var/log/odoo12/odoo12.log"

it gives me error

tail: cannot open '/var/log/odoo12/odoo12.log' for reading: No such file or directory

tail: no files remaining

I have properly mentioned log file path in conf file also.

Avatar
vondes
Bedste svar

For the final step, we need to install a script that will be used to start-up & shut-down the Odoo server automatically, with the correct user.

0
Avatar
Kassér
Hilar Andikkadavath

A link for bootscript is updated in answer.

Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Tilmeld dig
Related Posts Besvarelser Visninger Aktivitet
how to install sassc? Løst
installation odoo12
Avatar
Avatar
Avatar
Avatar
Avatar
12
jul. 24
81216
Errors while instalation Odoo 12 + Ubunty 16.04
installation ubuntu odoo12
Avatar
Avatar
1
nov. 20
23067
Psycopg2 error while installing odoo12 on ubuntu18
installation psycopg2 odoo12
Avatar
Avatar
Avatar
4
jun. 24
8880
Cannot initialize DB in Odoo12 Løst
development installation database odoo12
Avatar
Avatar
Avatar
2
maj 23
24928
unable to install and run odoo 12 ValueError: Name node can't be used with 'None' constant
installation python3 odoo12 cybrosis
Avatar
Avatar
Avatar
Avatar
Avatar
13
okt. 20
10011
Community
  • Tutorials
  • Dokumentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Oversættelser
Tjenester
  • Odoo.sh-hosting
  • Support
  • Opgradere
  • Individuelt tilpasset udvikling
  • Uddannelse
  • Find en bogholder
  • Find en partner
  • Bliv partner
Om os
  • Vores virksomhed
  • Brandaktiver
  • Kontakt os
  • Stillinger
  • Arrangementer
  • Podcast
  • Blog
  • Kunder
  • Juridiske dokumenter • Privatlivspolitik
  • Sikkerhedspolitik
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo er en samling open source-forretningsapps, der dækker alle dine virksomhedsbehov – lige fra CRM, e-handel og bogføring til lagerstyring, POS, projektledelse og meget mere.

Det unikke ved Odoo er, at systemet både er brugervenligt og fuldt integreret.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now