[MIG] partner_statement: Migration to 15.0

This commit is contained in:
mariadforgeflow
2022-02-04 15:59:23 +01:00
committed by Miquel Raïch
parent 683730388e
commit 830d58e8f0
6 changed files with 110 additions and 109 deletions

View File

@@ -56,25 +56,31 @@ class TestActivityStatement(TransactionCase):
statement = wiz_id.button_export_pdf()
self.assertDictContainsSubset(
{
"type": "ir.actions.report",
"report_name": self.report_name,
"report_type": "qweb-pdf",
},
self.assertDictEqual(
statement,
{
**{
"type": "ir.actions.report",
"report_name": self.report_name,
"report_type": "qweb-pdf",
},
**statement,
},
"There was an error and the PDF report was not generated.",
)
statement_xlsx = wiz_id.button_export_xlsx()
self.assertDictContainsSubset(
{
"type": "ir.actions.report",
"report_name": self.report_name_xlsx,
"report_type": "xlsx",
},
self.assertDictEqual(
statement_xlsx,
{
**{
"type": "ir.actions.report",
"report_name": self.report_name_xlsx,
"report_type": "xlsx",
},
**statement_xlsx,
},
"There was an error and the PDF report was not generated.",
)