1. Como instalar Aeroo en Open ERP 6.1 en Ubuntu 12.04
Esta es una guía modificada basada en este enlace:
http://www.alistek.com/wiki/index.php/Aeroo_Reports_Linux_server
1. Log-in to your OpenERP server using ssh.
2. Install Bazaar and download Aeroo module using bzr.
$ sudo apt-get update
$ sudo apt-get install python-setuptools
$ sudo apt-get install bzr
$ cd /home/username/
$ sudo bzr branch https://launchpad.net/aeroo
$ sudo bzr branch https://launchpad.net/aeroolib
$ bzr branch lp:aeroolib
3. Install Aeroo Reports library - Python module
$ cd /home/username/aeroolib/aeroolib
$ sudo python ./setup.py install
4. Restart your computer
$ sudo shutdown -r now
5. Download aeroo reports module from this link https://launchpad.net/aeroo. I suggest
you download all four modules related to aeroo reports including the sample. You can
also copy the modules downloaded earlier using bzr from /home/username folder.
6. Extract all four modules and paste it to your OpenERP server under this path
/usr/lib/pymodules/python2.7/openerp/addons. You can mount your OpenERP server to
your Ubuntu desktop as root using SSH. Ex. ssh://root@openerp-server-IP and paste it
to the path I mention. (root should be enabled first in your server to do this)
6B. If you are using Ubuntu 12.04 Desktop then chances are you already have
LibreOffice installed, otherwise if you are using Ubuntu 12.04 Server you need to
install it first before proceeding to the next step. I used aptitude because it is smart
enough to know that OpenOffice had been replace by LibreOffice and will use it
instead. (I don’t know the exact commands to install LibreOffice headless anyway.)
$ sudo apt-get install aptitude
$ sudo aptitude install openoffice.org-headless openoffice.org-writer openoffice.org-
draw openoffice.org-calc
$ sudo shutdown -r now
7. 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.
8. Now we need to create a script to start LibreOffice headless as a service every time
the OpenERP server boots up.
2. $ 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
#
OOo_HOME=/usr/bin
SOFFICE_PATH=$OOo_HOME/soffice
PIDFILE=/var/run/openoffice-server.pid
set -e
case “$1” in
start)
if [ -f $PIDFILE ]; then
echo “OpenOffice headless server has already started.”
sleep 5
exit
fi
echo “Starting OpenOffice headless server”
$SOFFICE_PATH -headless -nologo -nofirststartwizard -
accept=”socket,host=127.0.0.1,port=8100;urp” & > /dev/null 2>&1
touch $PIDFILE
;;
stop)
if [ -f $PIDFILE ]; then
echo “Stopping OpenOffice headless server.”
killall -9 soffice && killall -9 soffice.bin
rm -f $PIDFILE
exit
fi
echo “Openoffice headless server is not running.”
exit
;;
*)
echo “Usage: $0 {start|stop}”
exit 1
esac
exit 0
------------------------------------------------------------------
9. 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
10. Go to Settings->Customization->Aeroo Reports->Configure OpenOffice.org
connection. Click Connect. It should display that connection was successfull and PDF
convertion is working.