[FIX] Allow to generate printing options without a report

This commit is contained in:
Sylvain GARANCHER
2018-02-13 16:51:10 +01:00
parent a2ee4b8bbf
commit 3fe576fc2e
2 changed files with 1 additions and 4 deletions

View File

@@ -156,9 +156,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(