[FIX] Allow to generate printing options without a report

This commit is contained in:
Sylvain GARANCHER
2018-02-13 16:51:10 +01:00
committed by Rod Schouteden
parent edebf0094e
commit 6f1f465c29
2 changed files with 1 additions and 4 deletions

View File

@@ -164,9 +164,6 @@ class PrintingPrinter(models.Model):
@api.multi
def print_options(self, report=None, **print_opts):
options = {}
if not report:
return options
for option, value in print_opts.items():
try:
options.update(getattr(