Portero is a simplified ERP web interface for common tasks at Free Geek Twin Cities.
NOTE: As of 2014, work on Portero has largely stopped!
In its place, we're working on:
Portero is based on the Flask web framework, and uses openerp-client-lib to communicate with the OpenERP server, so to make it run:
Install Flask and related packages:
sudo apt-get install python-flask python-flaskext.wtf python-pip
sudo pip install openerp-client-lib Flask-Bootstrap
Download Portero (usually to e.g. /var/www/portero)
(Optional) Replace /etc/apache2/sites-available with apache-site file from portero
Copy portero_config.py.dist to portero_config.py and edit appropriately
(based on info from http://code.zoia.org/2013/05/09/setting-up-openerp7-on-osx-using-virtualenv)
openerp
): createuser --createdb --username postgres --no-createrole --pwprompt openerp
openerp
wget http://nightly.openerp.com/7.0/nightly/src/openerp-7.0-latest.tar.gz
brew install libjpeg
tar -zxvf openerp-7.0-latest.tar.gz
sudo pip install
things.pip install simplejson reportlab mako werkzeug babel python-dateutil python-openid PIL unittest2 mock docutils jinja2 gdata lxml pyyaml
wget https://launchpad.net/ubuntu/natty/+source/python-pychart/1.39-7/+files/python-pychart_1.39.orig.tar.gz; tar -zxvf python-pychart_1.39.orig.tar.gz; cd PyChart-1.39; python setup.py install; cd ..;
http://nightly.openerp.com/7.0/nightly/deb/
openerp-server.conf
file.[options]
admin_passwd = admin
db_host = localhost
db_port = False
db_name = openerp
db_user = openerp
db_password = openerp
OpenERP should now be running - you can view it (and create your database) at http://localhost:8069
./openerp-server --config=openerp-server.conf
. The first time this is run, it will install all the needed tables in the database. You can use the flag ---without-demo
to start fresh.admin
and password admin
(or if changed in conf).Track attendance for all employees
pip install -r requirements.txt
cp portero_config.py.dist portero_config.py
python portero.py