100% found this document useful (1 vote)
109 views3 pages

10 Steps To Install Odoo On MacOS X - Đam Mê Code

The document outlines 10 steps to install Odoo, an open-source ERP software, on MacOS X. It involves downloading the Odoo source code, creating a system user and group for Odoo, installing dependencies, configuring the database connection, and starting the Odoo server. Finally, it explains how to create a custom module once the installation is complete.

Uploaded by

pokecho
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
109 views3 pages

10 Steps To Install Odoo On MacOS X - Đam Mê Code

The document outlines 10 steps to install Odoo, an open-source ERP software, on MacOS X. It involves downloading the Odoo source code, creating a system user and group for Odoo, installing dependencies, configuring the database connection, and starting the Odoo server. Finally, it explains how to create a custom module once the installation is complete.

Uploaded by

pokecho
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

10 steps to install Odoo on MacOS 

1. Preparation

First you need to download Odoo source code at https://github.com/odoo/odoo then install


following softwares/packages:

sudo easy_install pip


sudo npm install -g less less-plugin-clean-css
sudo easy_install -U setuptools
brew install postgresql

2. Create user odoo

sudo dscl . -create /Users/odoo UserShell /bin/bash


sudo dscl . -create /Users/odoo RealName “Odoo”
sudo dscl . -passwd /Users/odoo <yourpassword>
sudo dscl . -append /Groups/admin GroupMembership odoo
sudo dscl . -create /Users/odoo UniqueID 499
sudo dscl . -create /Users/odoo PrimaryGroupID 20
sudo dscl . -create /Users/odoo NFSHomeDirectory /var/odoo
sudo dseditgroup -o edit -t user -a odoo admin

3. Unzip odoo source code

sudo mkdir -p /opt/odoo


unzip odoo-10.0.zip /opt/odoo
sudo chown -R odoo: /opt/odoo/
sudo chown -R odoo: /var/odoo/

4. Install dependencies

cd /opt/odoo/odoo-10.0/
sudo pip2 install —user -r requirements.txt

5. Create Odoo log file

sudo mkdir /var/log/odoo


sudo chown -R odoo:admin /var/log/odoo

6. Create odoo conf

sudo cp /opt/odoo/odoo-10.0/debian/odoo.conf /etc/odoo.conf


sudo chown odoo: /etc/odoo.conf
sudo vim /etc/odoo.conf

7. Copy the following into the config file

[options]
; This is the password that allows database operations:
; admin_passwd = PASSWORD
db_host = False
db_port = False
db_user = odoo
db_password = False
add ons_path = /opt/odoo/odoo-10.0/addons
;Log Settings
logfile = /var/log/odoo/odoo.log
log_level = error

8. Create database and database user in postgres

psql -U postgres
create user odoo encrypted password ‘odoo’ ;
create database odoo owner odoo

9. export locale variable


vim ~/.bash_profile
— add these lines ==>
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8

source ~/.bash_profile

10. start odoo

sudo su
su odoo
cd /opt/odoo/odoo-10.0/
./odoo-bin

DONE!  Now we can login to odoo system at http://localhost:8069 with credential: admin/admin

We can also create a custom module

sudo chmod -R 0777 *


sudo ./odoo-bin scaffold test-module addons

You might also like