[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

@@ -71,7 +71,7 @@ class TestPrintingPrinter(TransactionCase):
# with tests in test_printing_printer_tray from when modules merged
report = self.env['ir.actions.report'].search([], limit=1)
self.assertEqual(self.Model.print_options(
report, doc_format='raw'), {'raw': 'True'}
doc_format='raw'), {'raw': 'True'}
)
self.assertEqual(self.Model.print_options(
report, doc_format='pdf', copies=2), {'copies': '2'}