[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:
@@ -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_")
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user