Configuring OpenERP in PyCharm For Development

The instructions are based on the wiki page - . This one talks about Odoo (OpenERP 8).  The below guide talks more specifically about OpenERP 7 and Installing Bahmni ERP customizations.
  1. Download PyCharm from the Jetbrains site.  The community edition should be sufficient.
  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 


  9. Download the OpenERP version used in Bahmni.
  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 install
  12. Once the installation is complete, you can start the openerp using the following command. 
    ./openerp-server --database openerp --without-demo all --db_host <your_database_host> --update all
  13. Start the PyCharm and Open the project.  Select the folder  (~/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.


    Bahmni Customizations:
  16. Checkout
  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. 




The Bahmni documentation is licensed under Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)