[IMP] web_widget_mpld3_chart: Move widget from CharField to Component(Json field)

This commit is contained in:
BernatPForgeFlow
2023-11-30 11:57:10 +01:00
parent 972f688dbe
commit 4384f709b7
5 changed files with 29 additions and 27 deletions

View File

@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="UTF-8" ?>
<templates xml:space="preserve">
<t t-name="web_widget_mpld3_chart.Mpld3ChartField" owl="1">
<t t-out="json_value.div" />
<script type="text/javascript" t-out="json_value.script" />
</t>
<div t-ref="widget" t-name="web_widget_mpld3_chart.Mpld3ChartJsonWidget" owl="1">
<t t-if="props.value.div" t-out="markup(props.value.div)" />
</div>
</templates>