The alteration of the context has no effect

This commit is contained in:
Guewen Baconnier
2015-01-30 16:42:44 +01:00
committed by Sylvain GARANCHER
parent 5095569ba5
commit e6a846341b

View File

@@ -65,8 +65,6 @@ class Report(models.Model):
If the action configured on the report is server, it prints the If the action configured on the report is server, it prints the
generated document as well. 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, document = super(Report, self).get_pdf(cr, uid, ids, report_name,
html=html, data=data, html=html, data=data,
context=context) context=context)
@@ -78,5 +76,4 @@ class Report(models.Model):
context=context) context=context)
if can_send_report: if can_send_report:
printer.print_document(report, document, report.report_type) printer.print_document(report, document, report.report_type)
context['must_skip_sent_to_printer'] = True
return document return document