[IMP] web_widget_mpld3_chart: Move js to owl

This commit is contained in:
BernatPForgeFlow
2023-11-13 10:09:12 +01:00
committed by Franco Leyes
parent 68df1313da
commit 2012099573
4 changed files with 35 additions and 26 deletions

View File

@@ -27,7 +27,7 @@ class AbstractMpld3Parser(models.AbstractModel):
soup = BeautifulSoup(html_string, "lxml")
json_data = {
"style": soup.style.decode(),
"div": soup.div.get("id"),
"div": str(soup.div),
"script": soup.script.decode_contents(),
}
return json.dumps(json_data)