mirror of
https://github.com/OCA/report-print-send.git
synced 2025-02-16 07:11:31 +02:00
[FIX] Allow to generate printing options without a report
This commit is contained in:
committed by
Carlos Roca
parent
7dd9ead470
commit
750537c34a
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user