diff --git a/base_report_to_printer/printing.py b/base_report_to_printer/printing.py index 9fd2cbf..683bdab 100644 --- a/base_report_to_printer/printing.py +++ b/base_report_to_printer/printing.py @@ -248,7 +248,7 @@ class report_xml(orm.Model): printer_system_name = printer.system_name connection = cups.Connection() - options = self.set_options(cr, uid, report_id, printer, format, context=context) + options = self.set_print_options(cr, uid, report_id, format, context=context) connection.printFile(printer_system_name, file_name, file_name, options={}) logger = logging.getLogger('base_report_to_printer')