My Quick Project Setup [Odoo]

For Apple Silicon Macbook M1. Tested on Odoo 14 and 15

Photo by Wesson Wang on Unsplash
  • Open terminal in main project directory or wherever. And make new directory
cd projects
mkdir new_project
cd new_project
  • Clone particular Odoo version. Change the branch name with depth one (to only clone selected branch and only latest commits)
git clone git@github.com:odoo/odoo.git --depth 1 --branch 14.0
  • Make virtualenv with required python version 3.9. Activate. And install dependencies inside
virtualenv -p python3.9 venv
source venv/bin/activate
pip install wheel setuptools watchdog
pip install -r odoo/requirements.txt
pip uninstall psycopg2
pip install psycopg2-binary
  • Create config file by running script, database, and install base module
./odoo/odoo-bin --save --config odoo.conf --stop-after-init -d exp_20220210 -i base
limit_memory_hard = 0
  • Place extra addons (if there are) inside project directory on new directory
  • Restore database with filestore. If there isn’t, just create new one
  • Continue to PyCharm setup

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store