[MIG] report_csv: Migration to 13.0

This commit is contained in:
kongrattapong
2020-02-21 17:19:02 +07:00
committed by ferran-73
parent f9d2d2178a
commit 77665ceaec
7 changed files with 39 additions and 33 deletions

View File

@@ -24,6 +24,8 @@ class TestReport(common.TransactionCase):
self.docs = self.env["res.company"].search([], limit=1).partner_id
def test_report(self):
# Test if not res:
self.env["ir.actions.report"]._get_report_from_name("TEST")
report = self.report
self.assertEqual(report.report_type, "csv")
rep = report.render(self.docs.ids, {})