[IMP] report_fillpdf: black, isort, prettier

This commit is contained in:
Cyril VINH-TUNG
2022-10-12 11:27:53 -10:00
parent fc700935da
commit e405538571
12 changed files with 144 additions and 120 deletions

View File

@@ -6,9 +6,9 @@ from odoo.tests import common
class TestReport(common.TransactionCase):
def test_report(self):
report_object = self.env['ir.actions.report']
report_name = 'report_fillpdf.partner_fillpdf'
report_object = self.env["ir.actions.report"]
report_name = "report_fillpdf.partner_fillpdf"
report = report_object._get_report_from_name(report_name)
docs = self.env['res.company'].search([], limit=1).partner_id
self.assertEqual(report.report_type, 'fillpdf')
docs = self.env["res.company"].search([], limit=1).partner_id
self.assertEqual(report.report_type, "fillpdf")
report.render(docs.ids, {})