[MIG] report_xml: Migration to 16.0

This commit is contained in:
Du-ma
2022-10-18 11:08:40 +00:00
parent 5da258eb8f
commit 3dfa12cea0
8 changed files with 156 additions and 191 deletions

View File

@@ -13,7 +13,7 @@ class TestXmlReport(common.TransactionCase):
report = report_object._get_report_from_name(report_name)
docs = self.env["res.company"].search([], limit=1)
self.assertEqual(report.report_type, "qweb-xml")
result_report = report._render(docs.ids, {})
result_report = report_object._render(report_name, docs.ids, {})
result_tree = etree.fromstring(result_report[0])
el = result_tree.xpath("/root/user/name")
self.assertEqual(el[0].text, docs.ensure_one().name)