[MIG] report_csv: Migration to 13.0

This commit is contained in:
kongrattapong
2020-02-21 17:19:02 +07:00
committed by Zina Rasoamanana
parent 9660c55e9d
commit 35a7154801
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, {})