mirror of
https://github.com/OCA/report-print-send.git
synced 2025-02-16 07:11:31 +02:00
[10] FIX format parameter (#84)
* FIX format parameter To be able to print files in raw format it's needed to set this parameter. Previous code was not able to print raw files, but it didn't get error because 'format' used on line 107 is assumed as a format funtion, because format parameter was not on this scope. * FIX pep8
This commit is contained in:
committed by
Carlos Roca
parent
9410bbd13c
commit
6eb490f639
@@ -95,10 +95,11 @@ class PrintingPrinter(models.Model):
|
|||||||
finally:
|
finally:
|
||||||
os.close(fd)
|
os.close(fd)
|
||||||
|
|
||||||
return self.print_file(file_name, report=report, copies=copies)
|
return self.print_file(
|
||||||
|
file_name, report=report, copies=copies, format=format)
|
||||||
|
|
||||||
@api.multi
|
@api.multi
|
||||||
def print_file(self, file_name, report=None, copies=1):
|
def print_file(self, file_name, report=None, copies=1, format=None):
|
||||||
""" Print a file """
|
""" Print a file """
|
||||||
self.ensure_one()
|
self.ensure_one()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user