Giter Club home page Giter Club logo

openerp-dev's Introduction

OpenERP Dev Install

Author: Stefan Eletzhofer
Date: |today|

Abstract

Installation of a development environment for OpenERP

Prerequisites

  • PostgreSQL installed and reachable
  • python 2.7.x

Installation Steps

  • review database settings
  • make virtual env
  • bootstrap
  • run buildout
  • start server

review database settings

These settings in the buildout.cfg in the openerp path need to be adjusted:

options.db_host = localhost
options.db_name = False
options.db_user = seletz
options.db_pass = False

virtualenv

Make a virtualenv:

$ mkvirtualenv openerp-dev
$ workon openerp-dev
$ mkdir openerp-dev
$ cd openerp-dev
$ setvirtualenvproject

bootstrap

Run bootstrap.py:

$ workon openerp-dev
$ cd buildout
$ python bootstrap.py

This will run some time.

Start server

Fire the server up:

$ workon openerp-dev
$ cd buildout
$ bin/start_openerp

OpenERP should now be running on http://localhost:8069.

Example Code

sidebar_example

This example is derived from the google docs attachment addon. It shows:

  • how to create a new model:

    A model sidebar_example.config is created in __init__.py

  • how to hook in a configuration setting:

    A new configutation view is added for the above model. A tree and form view is configured. The forms are hooked into the main settings menu.

  • how to hook in a new menu entry dynamically. The menu entry Add Foo Doc ... is added dynamically to the Attachments drop-down menu of all models where a attachment is allowed.

    This is done completely in the browser using javascript.

web_example

I've followed the example https://doc.openerp.com/trunk/web/module, the code is in src/web_example.

Links

buildout recipe documentation
https://pypi.python.org/pypi/anybox.recipe.openerp
OpenERP Server Developer's Documentation
https://doc.openerp.com/trunk/server/
OpenERP Web Developer's Documentation
https://doc.openerp.com/trunk/web/
building a OpenERP web module
https://doc.openerp.com/trunk/web/module/
OpenERP Technical Memento PDF
https://www.openerp.com/files/memento/OpenERP_Technical_Memento_latest.pdf

openerp-dev's People

Contributors

seletz avatar

Stargazers

Ilmaç Pilagila avatar

Watchers

 avatar Med Said BARA avatar Ilmaç Pilagila avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.