Skip to content

install odoo framework development environment

Notifications You must be signed in to change notification settings

JudgK204/odoo-documents

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setup Development Environment

The following article is a guide for Ubuntu Operating System.

Update OS

sudo add-apt-repository universe
sudo add-apt-repository "deb http://mirrors.kernel.org/ubuntu/ xenial main"
sudo apt-get update
sudo apt-get upgrade -y

Install Python

  • Install Python 3.6
sudo apt install python3.6-dev python3.6-venv
python3.6 --version (check version)
  • Install Python 3.7
sudo apt install python3.7-dev python3.7-venv
python3.7 --version (check version)
  • Install Python 3.8
sudo apt install python3.8-dev python3.8-venv
python3.8 --version (check version)
  • Install Python 3.9
sudo apt install python3.9-dev python3.9-venv
python3.9 --version (check version)

Install Virtual Environments

  • Create a directory containing python venv by convention located in the Home directory

  • Python 3.6 Environment

python3.6 -m venv ~/python3.6-venv/odoo13
python3.6 -m venv ~/python3.6-venv/odoo14
  • Python 3.7 Environment
python3.7 -m venv ~/python3.7-venv/odoo13
python3.7 -m venv ~/python3.7-venv/odoo14
  • Python 3.8 Environment
python3.8 -m venv ~/python3.8-venv/odoo13
python3.8 -m venv ~/python3.8-venv/odoo14
  • Python 3.9 Environment
python3.9 -m venv ~/python3.9-venv/odoo13
python3.9 -m venv ~/python3.9-venv/odoo14

Git

  • Install Git
sudo apt update
sudo apt install git
git --version (check version)
  • Connecting to GitHub with SSH

Connecting to GitHub with SSH

  • Go to Home > Ctrl H to show hidden files and find the .ssh folder, inside there are id_rsa and id_rsa.pub files. Note: Do not share the file id_rsa.

Install dependencies, Environment Other

  • Nodejs, npm, python-pip,...
sudo apt-get install python3 python3-pip python3-venv python-dev python3-dev python3-wheel python-setuptools libxslt-dev libxml2-dev libxslt1-dev libzip-dev zlib1g-dev libjpeg-dev libldap2-dev libssl-dev libsasl2-dev libpq-dev python3-setuptools build-essential wget node-less gdebi -y
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get install nodejs npm -y
sudo npm install -g rtlcss
sudo npm install -g npm
sudo -H pip3 install --upgrade pip

Install Wkhtmltopdf

wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.focal_amd64.deb
sudo apt install ./wkhtmltox_0.12.6-1.focal_amd64.deb
wkhtmltopdf --version (check version)

Install PostgreSQL Server

sudo apt-get install postgresql postgresql-server-dev-all -y
sudo su - postgres -c "createuser -s user_dang_nhap_vao_may"

Install PgAdmin 4

wget https://ftp.postgresql.org/pub/pgadmin/pgadmin4/v5.7/pip/pgadmin4-5.7-py3-none-any.whl
pip3 install pgadmin4-5.7-py3-none-any.whl
sudo apt install curl
sudo curl https://www.pgadmin.org/static/packages_pgadmin_org.pub | sudo apt-key add
sudo sh -c 'echo "deb https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/$(lsb_release -cs) pgadmin4 main" > /etc/apt/sources.list.d/pgadmin4.list && apt update'
sudo apt install pgadmin4-desktop

Create Role In PgAdmin 4

sudo service postgresql start
sudo -u postgres psql

Postgres window appears

CREATE USER <username> WITH LOGIN SUPERUSER CREATEDB CREATEROLE INHERIT REPLICATION CONNECTION LIMIT -1;
ALTER USER postgres PASSWORD '<password>';

Install Eclipse

sudo snap install --classic eclipse
sudo apt install default-jre

qx54-hu95-kpd9

Clone odoo to git

 git clone <SSH_repository_odoo_link> --depth 1 -b 14.0.
 source activate
 pip install -r /home/khoa-jocelyn/git-clone/odoo14/requirements.txt

Create odoo module new

./odoo-bin scaffold <module-name> <folder-path-to-save-module>
git fetch khoa-jocelyn <kéo remote>

About

install odoo framework development environment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%