mirror of
https://github.com/OCA/report-print-send.git
synced 2025-02-16 07:11:31 +02:00
Merge branch '8.0' of https://github.com/intero-chz/report-print-send into 8.0
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
##############################################################################
|
||||
{
|
||||
'name': "Report to printer",
|
||||
'version': '8.0.0.1.1',
|
||||
'version': '8.0.0.1.2',
|
||||
'category': 'Generic Modules/Base',
|
||||
'author': "Agile Business Group & Domsense, Pegueroles SCP, NaN,"
|
||||
"Odoo Community Association (OCA)",
|
||||
|
||||
@@ -42,7 +42,8 @@ class Report(models.Model):
|
||||
raise exceptions.Warning(
|
||||
_('No printer configured to print this report.')
|
||||
)
|
||||
return printer.print_document(report, document, report.report_type)
|
||||
return printer.with_context(context).print_document(
|
||||
report, document, report.report_type)
|
||||
|
||||
@api.v8
|
||||
def print_document(self, records, report_name, html=None, data=None):
|
||||
|
||||
Reference in New Issue
Block a user