[RFR] l10n_nl_mis_reports -> mis_template_financial_report

This commit is contained in:
Stefan Rijnhart
2021-10-17 11:19:20 +02:00
committed by Geraldo Lopez
parent 2b279ca0a1
commit de2c0857c1
22 changed files with 902 additions and 0 deletions

View File

@@ -0,0 +1 @@
from . import test_mis_template_financial_report

View File

@@ -0,0 +1,15 @@
# Copyright 2020 Hunki Enterprises BV
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo.addons.mis_builder.tests.test_mis_report_instance import TestMisReportInstance
class TestMisTemplateFinancialReport(TestMisReportInstance):
def test_mis_template_financial_report(self):
instance = self.env["mis.report.instance"].create(
{
"name": "Balance Sheet",
"report_id": self.env.ref("mis_template_financial_report.report_bs").id,
}
)
result_dict = instance.compute()
self.assertEqual(len(result_dict.get("horizontal_matrices", [])), 2)