[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 hda
parent fcb54dc384
commit 4ae97488a2
3 changed files with 124 additions and 123 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(