Files
odoo_source/addons/spreadsheet_dashboard/tests/test_dashboard_data.py
T
Lucas Lefèvre 14700c9e96 [FIX] spreadsheet_dashboard: unskip expense dashboard test
The test was skipped because the expense dashboard was broken when
the test was merged.
See https://github.com/odoo/odoo/commit/17afe2987e4146b85187b31a34caf7146d5a7cf2

closes odoo/odoo#109033

X-original-commit: 4d4c192e0994ff7849641499b728fe228ae66a4d
Signed-off-by: Rémi Rahir (rar) <rar@odoo.com>
Signed-off-by: Lucas Lefèvre (lul) <lul@odoo.com>
2023-01-04 11:35:52 +01:00

15 lines
572 B
Python

from odoo.addons.spreadsheet.tests.validate_spreadsheet_data import (
ValidateSpreadsheetData,
)
from odoo.tests.common import tagged
@tagged("-at_install", "post_install")
class TestSpreadsheetDashboardData(ValidateSpreadsheetData):
def test_validate_dashboard_data(self):
"""validate fields and models used in dashboards"""
dashboards = self.env["spreadsheet.dashboard"].search([])
for dashboard in dashboards:
with self.subTest(dashboard.name):
self.validate_spreadsheet_data(dashboard.raw, dashboard.name)