mirror of
https://github.com/OCA/report-print-send.git
synced 2025-02-16 07:11:31 +02:00
The alteration of the context has no effect
This commit is contained in:
committed by
Sylvain GARANCHER
parent
5095569ba5
commit
e6a846341b
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user