Package: odoo10-addon-report-py3o-fusion-server
Py3o Report Engine - Fusion server supportThis module was written to let a py3o fusion server handle format conversion instead of local libreoffice. If you install this module above thereport_py3omodule, you will have to deploy additionnal software components and run 3 daemons (libreoffice, py3o.fusion and py3o.renderserver). This additionnal complexiy comes with several advantages:much better performances (Libreoffice runs permanently in the background, no need to spawn a new Libreoffice instance upon every document conversion).ability to configure PDF export options in Odoo. This brings many new possibilities such as the ability to generate:PDF formsPDF/A documents (required by some electronic invoicing standards such asFactur-X)watermarked PDF documentspassword-protected PDF documentsInstallationInstall several additional components and Python libs:Py3o Fusion server,Py3o render server,a Java Runtime Environment (JRE), which can be OpenJDK,Libreoffice started in the background in headless mode,the Java driver for Libreoffice (Juno).It is also possible to use the Python driver for Libreoffice (PyUNO), but it is recommended to use the Java driver because it is more stable.The installation procedure below uses the Java driver. It has been successfully tested on Ubuntu 16.04 LTS ; if you use another OS, you may have to change a few details.Installation of Libreoffice, JRE and required Java libs on Debian/Ubuntu:sudo apt-get install default-jre ure libgoogle-gson-java libreoffice-java-common libreoffice-writerYou may have to install additionnal fonts. For example, to have the special unicode symbols for phone/fax/email in the PDF reports generated by Py3o, you should install the following package:sudo apt-get install fonts-symbolaInstallation of py3o.fusion:pip install py3o.fusion
pip install service-identityInstallation of py3o.renderserver:pip install py3o.renderserverAt the end, with the dependencies, you should have the following py3o python libs:% pip freeze | grep py3o
py3o.formats==0.3
py3o.fusion==0.8.8
py3o.renderclient==0.2
py3o.renderers.juno==0.8
py3o.renderserver==0.5.1
py3o.template==0.9.12
py3o.types==0.1.1Start the Py3o Fusion server:start-py3o-fusion --debug -s localhostStart the Py3o render server:start-py3o-renderserver --java=/usr/lib/jvm/default-java/jre/lib/amd64/server/libjvm.so --ure=/usr/share --office=/usr/lib/libreoffice --driver=juno --sofficeport=8997On the output of the Py3o render server, the first line looks like:DEBUG:root:Starting JVM: /usr/lib/jvm/default-java/jre/lib/amd64/server/libjvm.so with options: -Djava.class.path=/usr/local/lib/python2.7/dist-packages/py3o/renderers/juno/py3oconverter.jar:/usr/share/java/juh.jar:/usr/share/java/jurt.jar:/usr/share/java/ridl.jar:/usr/share/java/unoloader.jar:/usr/share/java/java_uno.jar:/usr/lib/libreoffice/program/classes/unoil.jar -Xmx150MAfter-Djava.class.path, there is a list of Java libs with.jarextension ; check that each JAR file is really present on your filesystem. If one of the jar files is present in another directory, create a symlink that points to the real location of the file. If all the jar files are present on another directory, adapt the–ure=argument on the command line of Py3o render server.To check that the Py3o Fusion server is running fine, visit the URLhttp://<IP_address>:8765/form. On this web page, under the sectionTarget format, make sure that you have a lineThis server currently supports these formats: ods, odt, docx, doc, html, docbook, pdf, xls..If you want to produce valid PDF/A documents with this module, activating the corresponding option in the PDF Export Options may not be enough, you also have to make sure that all the fonts used in the document template are installed on the Odoo server, so that they can be embedded in the PDF/A document. For example, if your document template uses the Arial font, you should install that font on your Odoo server:sudo apt-get install msttcorefontsKnown issues / RoadmapAdd support for PDF signatures (possible, but no easy because the signature certificate is a very particular PDF export option)Bug TrackerBugs are tracked onGitHub Issues. In case of trouble, please
check there if your issue has already been reported. If you spotted it first,
help us smashing it by providing a detailed and welcomed feedback.CreditsContributorsFlorent Aide (XCG Consulting)Laurent Mignon <laurent.mignon@acsone.eu>,Alexis de Lattre <alexis.delattre@akretion.com>,Guewen Baconnier <guewen.baconnier@camptocamp.com>Omar Castiñeira <omar@comunitea.com>Holger Brunn <hbrunn@therp.nl>Do not contact contributors directly about help with questions or problems concerning this addon, but use thecommunity mailing listor theappropriate specialized mailinglistfor help, and the bug tracker linked inBug Trackerabove for technical issues.MaintainerThis module is maintained by the OCA.OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.To contribute to this module, please visithttps://odoo-community.org.