[FIX] spreadsheet: fix dashboard tests

feffe7d removed the id from the chart object at export, but this id was
used to validate the dashboard data in the test. Take the figure id
insread in the tests.

X-original-commit: 3788df2fe6e3c0b62df604a1aae89b3d81c324d4
Part-of: odoo/odoo#102006
This commit is contained in:
Adrien Minne
2022-10-04 08:30:43 +02:00
parent a3313df2f0
commit ca1998fb35
@@ -16,7 +16,7 @@ def odoo_charts(data):
figures = []
for sheet in data["sheets"]:
figures += [
figure["data"]
dict(figure["data"], id=figure["id"])
for figure in sheet["figures"]
if figure["tag"] == "chart" and figure["data"]["type"].startswith("odoo_")
]