[MIG] base_report_to_printer: Migration to 13.0

This commit is contained in:
Rod Schouteden
2019-09-30 12:13:42 +02:00
committed by John Herholz
parent e94fb3da48
commit 0e53482bbb
20 changed files with 69 additions and 76 deletions

View File

@@ -167,7 +167,8 @@ class TestIrActionsReportXml(TransactionCase):
)
def test_behaviour_printing_action_with_no_printer(self):
""" It should return the action from printing action and printer from other
""" It should return the action from printing action and printer from
other
"""
report = self.Model.search([], limit=1)
self.env.user.printing_action = 'client'
@@ -196,7 +197,8 @@ class TestIrActionsReportXml(TransactionCase):
)
def test_behaviour_printing_action_user_defaults(self):
""" It should return the action and printer from user with printing action
""" It should return the action and printer from user with printing
action
"""
report = self.Model.search([], limit=1)
self.env.user.printing_action = 'client'

View File

@@ -40,7 +40,8 @@ class TestPrintingReportXmlAction(TransactionCase):
})
def test_behaviour(self):
""" It should return some action's data, unless called on empty recordset
""" It should return some action's data, unless called on empty
recordset
"""
xml_action = self.new_record()
self.assertEqual(xml_action.behaviour(), {