Install ODOO 14 – MacOS

———–
Prepare
———–

xcode-select --install
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install python3
brew install wkhtmltopdf
brew install npm
sudo npm install -g rtlcss

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python3 get-pip.py
python3 -m pip install --upgrade pip
python3 -m pip install --upgrade Pillow
pip3 install virtualenv
pip3 install setuptools wheel

 

————————–
Install PostgreSQL
————————–

 

Download : PGSQL

1. Download ➜ Move to Applications folder ➜ Double Click

If you don’t move Postgres.app to the Applications folder, you will see a warning about an unidentified developer and won’t be able to open it.

 

2. Click “Initialize” to create a new server

 

Configure your $PATH to use the included command line tools (optional):

3. sudo mkdir -p /etc/paths.d && echo /Applications/Postgres.app/Contents/Versions/latest/bin | sudo tee /etc/paths.d/postgresapp

Done! You now have a PostgreSQL server running on your Mac with these default settings:

Host localhost
Port 5432
User your system user name
Database same as user
Password none
Connection URL postgresql://localhost

 

————
Install ODOO
————

 

odoo version 12

wget https://nightly.odoo.com/12.0/nightly/tgz/odoo_12.0.latest.tar.gz

 

odoo version 14

wget https://nightly.odoo.com/14.0/nightly/tgz/odoo_14.0.latest.tar.gz

 

tar xzvf odoo_14.0.latest.tar.gz
mv odoo-14.0.post20210321 odoo_v14

 

cd odoo_v14
python3 -m venv .env
source .env/bin/activate
pip3 install -r requirements.txt
python3 setup.py install
vi odoo-bin

 

#!/usr/bin/env python3
# set server timezone in UTC before time module imported
__import__('os').environ['TZ'] = 'UTC'
import odoo

if __name__ == "__main__":
odoo.cli.main()
mkdir conf
python3 odoo-bin -sc conf/odoo.conf

 

2021-03-21 04:31:02,994 6888 INFO ? odoo: Odoo version 14.0-20210321
2021-03-21 04:31:02,995 6888 INFO ? odoo: Using configuration file at /Users/agink/_ODOO_/odoo_v14/conf/odoo.conf
2021-03-21 04:31:02,995 6888 INFO ? odoo: addons paths: [‘/Users/agink/_ODOO_/odoo_v14/odoo/addons’, ‘/Users/agink/_ODOO_/odoo_v14/.env/lib/python3.9/site-packages/odoo-14.0.post20210321-py3.9.egg/odoo/addons’, ‘/Users/agink/Library/Application Support/Odoo/addons/14.0’, ‘/Users/agink/_ODOO_/odoo14/addons’]
2021-03-21 04:31:02,995 6888 INFO ? odoo: database: [email protected]:default
2021-03-21 04:31:03,400 6888 INFO ? odoo.addons.base.models.ir_actions_report: Will use the Wkhtmltopdf binary at /usr/local/bin/wkhtmltopdf
2021-03-21 04:31:03,826 6888 INFO db_agink odoo.modules.loading: loading 1 modules…
2021-03-21 04:31:03,841 6888 INFO db_agink odoo.modules.loading: 1 modules loaded in 0.01s, 0 queries (+0 extra)
2021-03-21 04:31:03,860 6888 INFO db_agink odoo.modules.loading: loading 7 modules…
2021-03-21 04:31:03,984 6888 INFO db_agink odoo.modules.loading: 7 modules loaded in 0.12s, 0 queries (+0 extra)
2021-03-21 04:31:04,091 6888 INFO db_agink odoo.modules.loading: Modules loaded.
2021-03-21 04:31:05,043 6888 INFO ? odoo.service.server: HTTP service (werkzeug) running on saiya.local:8069
2021-03-21 04:31:20,800 6888 INFO db_agink odoo.service.server: Initiating shutdown
2021-03-21 04:31:20,800 6888 INFO db_agink odoo.service.server: Hit CTRL-C again or send a second signal to force the shutdown.

 

psql postgres

 

 

psql (13.2)
Type "help" for help.

postgres=# \du
List of roles
Role name | Attributes | Member of 
-----------+------------------------------------------------------------+-----------
agink | Superuser, Create role, Create DB | {}
postgres | Superuser, Create role, Create DB, Replication, Bypass RLS | {}

postgres=# create role odoo14 with login password 'odoo_v14_pass';
CREATE ROLE
postgres=# alter role odoo14 createdb;
ALTER ROLE
postgres=# quit
vi conf/odoo.conf

 

[options]
addons_path = /Users/agink/_ODOO_/odoo_v14/odoo/addons
::: edit database :::
db_host = False
db_maxconn = 64
db_name = False
db_password = False
db_port = False
db_sslmode = prefer
db_template = template0
db_user = odoo14
:::
http_enable = True
http_interface =
http_port = 8014
:::

 

———————-
Running ODOO
———————-

 

1. Open & Start PostgreSQL service
2. source .env/bin/activate
3. python3 odoo-bin -sc conf/odoo.conf

 

2021-03-21 05:20:59,871 8120 INFO ? odoo: Odoo version 14.0-20210321
2021-03-21 05:20:59,871 8120 INFO ? odoo: Using configuration file at /Users/agink/_ODOO_/odoo_v14/conf/odoo.conf
2021-03-21 05:20:59,871 8120 INFO ? odoo: addons paths: [‘/Users/agink/_ODOO_/odoo_v14/odoo/addons’, ‘/Users/agink/_ODOO_/odoo_v14/.env/lib/python3.9/site-packages/odoo-14.0.post20210321-py3.9.egg/odoo/addons’, ‘/Users/agink/Library/Application Support/Odoo/addons/14.0’]
2021-03-21 05:20:59,871 8120 INFO ? odoo: database: [email protected]:default
2021-03-21 05:21:00,128 8120 INFO ? odoo.addons.base.models.ir_actions_report: Will use the Wkhtmltopdf binary at /usr/local/bin/wkhtmltopdf
2021-03-21 05:21:01,422 8120 INFO ? odoo.service.server: HTTP service (werkzeug) running on saiya.local:8014

 

3. browser url http://localhost:8014
username : [email protected]
password : adminPassword