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)
- Install Postgres (via homebrew).
- OpenERP will not run as the default postgres user as it is very opinionated and thinks this is insecure (which for production it would be).
- Create new user (
openerp
):createuser --createdb --username postgres --no-createrole --pwprompt openerp
- Enter the password and make a superuser when prompted.
- Create new database:
openerp
- Download source tarball from http://nightly.openerp.com/7.0/nightly/src/.
wget http://nightly.openerp.com/7.0/nightly/src/openerp-7.0-latest.tar.gz
brew install libjpeg
- Untar and change directory into it.
tar -zxvf openerp-7.0-latest.tar.gz
- (optional) Setup a virtualenv. If you do not use a virtualenv, you will probably have to
sudo pip install
things. pip install simplejson reportlab mako werkzeug babel python-dateutil python-openid PIL unittest2 mock docutils jinja2 gdata lxml pyyaml
- Manually install PyChart:
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 ..;
- A nightly deb package is available at
http://nightly.openerp.com/7.0/nightly/deb/
- Create a
openerp-server.conf
file. - Update database password and other values if needed
[options]
admin_passwd = admin
db_host = localhost
db_port = False
db_name = openerp
db_user = openerp
db_password = openerp
- Download .deb package: http://nightly.openerp.com/7.0/nightly/deb/openerp_7.0-latest-1_all.deb
- sudo dpkg install openerp_7.0-latest-1_all.deb
- sudo apt-get -f install (this downloads most of OpenERP's required packages)
- sudo apt-get install postgresql
- sudo -u postgres createuser --no-createrole --no-superuser openerp
OpenERP should now be running - you can view it (and create your database) at http://localhost:8069
- Run server:
./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. - Go to http://localhost:8069/
- Login with user:
admin
and passwordadmin
(or if changed in conf).
- In the web interface, under Installed Modules, install the Timesheets module (will also install the Accounting module).
- Click Settings, Under Configuration, click Human Resources.
- Enable
Track attendance for all employees
- Enable
- (optional) Setup a virtualenv.
pip install -r requirements.txt
- Create and edit config:
cp portero_config.py.dist portero_config.py
- Run server with
python portero.py
- Go to http://127.0.0.1:5000/