From ac9572734a89d50c6f22df1c8a085e6cecceb302 Mon Sep 17 00:00:00 2001 From: Guewen Baconnier Date: Fri, 30 Jan 2015 16:42:44 +0100 Subject: [PATCH] The alteration of the context has no effect --- base_report_to_printer/report.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/base_report_to_printer/report.py b/base_report_to_printer/report.py index 2bb2282..e88bcaf 100644 --- a/base_report_to_printer/report.py +++ b/base_report_to_printer/report.py @@ -65,8 +65,6 @@ class Report(models.Model): If the action configured on the report is server, it prints the generated document as well. """ - if context is None: - context = self.pool['res.users'].context_get(cr, uid) document = super(Report, self).get_pdf(cr, uid, ids, report_name, html=html, data=data, context=context) @@ -78,5 +76,4 @@ class Report(models.Model): context=context) if can_send_report: printer.print_document(report, document, report.report_type) - context['must_skip_sent_to_printer'] = True return document