Hello Everyone,
These are the steps to setup and use Aeroo reports in OpenERP! Lets thank Alistek for this wonderful Reporting engine.
- Install Aeroo Reports Library:
- Download Aeroolib at following link:
https://launchpad.net/aeroolib/+download (wget https://launchpad.net/aeroolib/trunk/1.0.0/+download/aeroolib.tar.gz) or wget https://github.com/aeroo/aeroolib/archive/master.zip - Extract aeroolib.tar.gz into the current folder
tar -xvzf aeroolib.tar.gz
- Go to aeroolib folder and run following command to install library:
$ sudo python ./setup.py install - Restart computer
$ sudo shutdown -r now - Download aeroo modules for OpenERP
- Download Aeroolib at following link:
- Install LibreOffice: using following command lines to setup for LibreOffice
- $ sudo apt-get install aptitude
- $ sudo aptitude install openoffice.org-headless openoffice.org-writer openoffice.org-draw openoffice.org-calc
- $ sudo shutdown -r now
- Install Aeroo standard module: Open your browser and log-in to your OpenERP installation as admin. Make sure you enabled extended view then go to Settings->Modules->Update Module List. Then click Open Modules and search for keyword aeroo. Install all the Aeroo report modules afterwards (report_aeroo, report_aeroo_ooo)
- Create a script to start LibreOffice headless as a service every time the OpenERP server boots up
- $ sudo nano /etc/init.d/openoffice.sh
Paste the following below this line--------------------------------------------------------------#!/bin/bash# openoffice.org headless server script## chkconfig: 2345 80 30# description: headless openoffice server script# processname: openoffice## Author: Vic Vijayakumar# Modified by Federico Ch. Tomasczik#OOo_HOME=/usr/binSOFFICE_PATH=$OOo_HOME/sofficePIDFILE=/var/run/openoffice-server.pidset -ecase "$1" instart)if [ -f $PIDFILE ]; thenecho "OpenOffice headless server has already started."sleep 5exitfiecho "Starting OpenOffice headless server"$SOFFICE_PATH -headless -nologo -nofirststartwizard -accept="socket,host=127.0.0.1,port=8100;urp" & > /dev/null 2>&1touch $PIDFILE;;stop)if [ -f $PIDFILE ]; thenecho "Stopping OpenOffice headless server."killall -9 soffice && killall -9 soffice.binrm -f $PIDFILEexitfiecho "Openoffice headless server is not running."exit;;*)echo "Usage: $0 {start|stop}"exit 1esacexit 0--------------------------------------------------------------
- $ sudo nano /etc/init.d/openoffice.sh
-
Exit the nano editor and save the file you just did. Make the script executable and make it start automatically at boot$ sudo chmod 0755 /etc/init.d/openoffice.sh$ sudo update-rc.d openoffice.sh defaults$ sudo /etc/init.d/openoffice.sh start
- Go to Settings->Customization->Aeroo Reports->Configure OpenOffice.org connection. Click Connect. It should display that connection was successful and PDF conversion is working.