BBahmni 한국어 매뉴얼검색
한국어 번역 완료
한국어English

Configuring OpenERP in PyCharm For Development

  1. Download PyCharm from the Jetbrains site.  The community edition should be sufficient. https://www.jetbrains.com/pycharm/
  2. Ensure that Homebrew is installed in your Mac machine.
  3. If Python is not installed, run the following command: brew install python 
  4. Install local Postgres server or we can use the one that is available in vagrant box or docker container.
  5. Install relevant python modules using the following command: brew install freetype jpeg libpng libtiff webp xz 
  6. Perform the following link operation to freetype2     ln -s /usr/local/include/freetype2 /usr/local/include/freetype  
  7. Installing Python modules using pip will be a cleaner option.  Please follow the commands. pip install virtualenv virtualenv ~/odoo-env . ~/odoo-env/bin/activate 
  8. At this point, the command "which python" should point us to  /Users/youruser/odoo-env/bin/python 
  9. Download the OpenERP version used in Bahmni. https://www.dropbox.com/s/wjf7jlcm4c3txbc/openerp-7.0-20130301-002301.tar.gz?dl=0
  10. Unzip it to some location.  Lets say (~/openerp-7.0-20130301-002301)
  11. Run the openerp setup using the following command from the unzipped folder: python setup.py install
  12. Once the installation is complete, you can start the openerp using the following command.&nbsp; ./openerp-server --database openerp --without-demo all&nbsp;--db_host <your_database_host> --update all &nbsp;
  13. Start the PyCharm and Open the project. &nbsp;Select the folder&nbsp;&nbsp;(~/openerp-7.0-20130301-002301)
  14. Configure the "Run..." settings (Run > Run ...)
  15. Ensure that the Python Interpreter is selected as the one created in Step 7. &nbsp;Bahmni Customizations:
    Screen Shot 2015-05-20 at 1.42.19 PM.png
  16. Checkout&nbsp;https://github.com/Bhamni/openerp-modules
  17. Copy the modules to addons folder of your openerp installation (~/openerp-7.0-20130301-002301/openerp/addons)
  18. PyCharm's "Run" command will start OpenERP.&nbsp; &nbsp;&nbsp;
원문 정보

Bahmni Wiki · CC BY-SA 4.0

원문 보기 ↗