Question

I'm work with Aeroo report in OpenERP. I define function called fill_stars(self, amount): which takes the amount and convert into text format.

While I'm going to print report, it gives following error

Exception: (u'Aeroo Reports: Error while generating the report "Invoice Report".', UndefinedError('"fill_stars" not defined',))

I check the track-back and the result is that "function is not called".

Was it helpful?

Solution

After long time, I found solution. Hope this will helpful to all.

If your Libreoffice server and telnet server is not start than your function will not call.

Step to start above server.

cd /usr/lib/libreoffice/program/ #to move to the libreoffice:

./soffice -nologo -nofirststartwizard -headless -norestore -invisible "-accept=socket,host=localhost,port=8100,tcpNoDelay=1;urp;" #Open Libreoffice server

telnet localhost 8100 #Open another terminal and Test Localhost

And than Go to Settings/ Modules / Update module list : Search for 'ooo' , you will find 'report_aeroo_ooo'. Install the module.

And Finally, Configure OpenOffice.org connection from Setting/Technical/Configure OpenOffice.org co.. and press connect.

After do that, my function and report work well.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top