You are on page 1of 4

Linking OpenERP to CUPS printers: base_report_to_printer

Introduction
OpenERP users often require the possibility to send reports to system printers, in order to print the reports on paper directly. In OpenERP 5, this functionality was implemented by prinjob module. It provided several functionalities, one of these was to automatically send reports to !P" printers. #fter the release of OpenERP $, the module stopped wor%in&. #t that point, one of the printjob's authors said that he wouldn't have ported the module to OpenERP $, so many users was left empty(handed. Recently, I've pic%ed up the issue a&ain and, after havin& analysed the problems of portin& printjob to OpenERP $, I decided to reali)e a module that would have e*trapolated the most important functionalities of printjob and better adapted to printin& methods of OpenERP $. "o, base+report+to+printer was born.

Configuration
,he base+report+to+printer module is downloadable from apps.openerp.com or directly from our code repository. Once you installed it, the Printing menu will appear.

-irst of all, you have to load !P" printers in OpenERP. .ou can use a wi)ard that retrieves them automatically. .ou just have to clic% on Update Printers from CUPS and printers will appear within the available printers list. In the ne*t step you will confi&ure the reports to send to the printers.

,hrou&h the report form you can define the system's behaviour while producin& the report.

.ou can set a &lobal behaviour, or differentiate it accordin& to the user who's printin&. In the e*ample, the &lobal behaviour defines to send the report to client directly /Send to

Client0, therefore without sendin& it to the printer. 1ut if user elbati is printin&, the report will be sent to the selected printer /Send to Printer0. .ou can also define a default behaviour associated to the user, in order to establish whether a certain user, when not differently set, wants to send the reports always to a specific printer or not. #fter finishin& the confi&uration, you will just have to clic% on printin& button associated to the report /or launch the report by a wi)ard or whatever0 and the system will automatically send the report to the previously set printer. 2appy printin&.

You might also like