Printscreen has been and is an attractive feature of OpenERP. But unfortunately this feature was available for OpenERP 6.1 GTK Client. OpenERP 7 provide an functionality to print the current view in PDF.
You may have already noticed that i have already published a blog named “Printscreen in OpenERP 7 which was a migrated module from web_export_view with few my own functionality added to it. But now we have developed a new module called web_printscreen_zb with some new features that might be helpful to users of OpenERP 7.
The main features of this module are:
The module can be installed as a normal OpenERP module. The only python dependency that is need for the module is python-xlwt which is needed to export to xls file. This can be installed using the comment “sudo apt-get install python-xlwt” for Ubuntu. After installing the module, you can see two anchor buttons called “Export to PDF” and “Export to Excel” on the right side of the OpenERP web client as shown in the screenshot below:
These buttons will only appear if the active view is a tree view. This button wont be visible in any of the other view types. When the button “Export to PDF” is clicked, the report will be exported to PDF or if “Export to Excel”, the report will be printed in “Excel”. The heading and the totals will be printed in Bold. A sample screenshot of the excel and PDF report is shown below:
The module also allows to print analytic reports in to CSV of excel. The screenshot below shows an analytic view:
You can also see the “Export to Excel” and “Export to PDF” in the top right side of the view. If you click the button “Export to Excel”, it will be exported to excel else if “Export to PDF”, it will be exported to “PDF”. A sample report is shown below:
A video showing the functionality of the module is shown below:
The module is attached with the blog. Module is also shared at https://github.com/zbeanz/openerp-7-web-addons. Module can also be downloaded from launchpad bzr branch lp:~r-launchpadzbeanz/zbeanz/addons.
Module is also available in Odoo 8. Module is attached with the blog.
Hai Anh: Hi, I'm using Odoo v8 and this module. Your module works perfect, except that my .pdf files are not readable because some characters are wrap by black boxes. I'm using Vietnamese. How can I fix this? Thanks.".
Leave a Reply