You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

78 lines
1.7 KiB

5 years ago
  1. # Install odoo on macos
  2. > Tested on macos High Sierra (10.13.3)
  3. ##### 1) install Homebrew
  4. ```
  5. $ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  6. ```
  7. ##### 2) Install Python, postgresql and needed modules
  8. ```
  9. $ brew update
  10. $ brew install python
  11. $ brew install postgresql
  12. $ brew install freetype jpeg libpng libtiff webp xz
  13. ```
  14. ##### 3) Add postgresql to system startup
  15. ```
  16. $ ln -sfv /usr/local/opt/postgresql/*.plist ~/Library/LaunchAgents
  17. $ launchctl load ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
  18. ```
  19. ##### 4) install less compiler
  20. ```
  21. $ brew install npm
  22. $ npm install -g less
  23. ```
  24. ##### 5) setup odoo environment
  25. I recommend using [virtualenvwrapper](http://virtualenvwrapper.readthedocs.io/en/latest/index.html)
  26. ```
  27. $ mkvirtualenv odoo -p /path/to/python2.7 # generally /usr/bin/python2.7
  28. $ which python # should return:
  29. /Users/<user>/.virtualenvs/odoo/bin/python
  30. ```
  31. Use `deactivate` to get out of odoo environment, use `workon odoo` to activate the environment.
  32. ##### 6) clone odoo
  33. ```
  34. $ cd ~/projects
  35. $ git clone https://github.com/odoo/odoo.git odoo
  36. ```
  37. ##### 7) Install odoo requirements
  38. ```
  39. $ cd odoo
  40. $ git checkout 9.0
  41. $ pip install -r requirements.txt
  42. ```
  43. You should now be able to start a simple odoo instance with `python odoo.py`
  44. ## Configuring pycharm
  45. ## Troubleshoot
  46. Missing codaparserexception
  47. ```
  48. pip install pycoda
  49. ```
  50. Can't update `product_scale_log` table (I did not write down the exact error)
  51. ```
  52. truncate table product_scale_log
  53. ```
  54. ## Source
  55. source: [setup-odoo-development-on-os-x-with-pycharm](http://bloopark.de/en_US/blog/the-bloopark-times-english-2/post/setup-odoo-development-on-os-x-with-pycharm-109)