[已解决]t-att-graph_type widget="dashboard_graph"
-
源码中用到这个widget的都用了
t-att-graph_type
,这个是起什么作用的,我只用widget报js错。什么原因导致的?<field name="kanban_dashboard_graph" t-att-graph_type="_.contains(['cash','bank'],journal_type) ? 'line' : 'bar'" widget="dashboard_graph"/>
<field name="dashboard_graph_data" widget="dashboard_graph" t-att-graph_type="record.dashboard_graph_type.raw_value"/>
TypeError: callback is null http://127.0.0.1:8070/web/static/lib/nvd3/d3.v3.js:975 Traceback: d3_selectionPrototype.call@http://127.0.0.1:8070/web/static/lib/nvd3/d3.v3.js:975:5 _render/<@http://127.0.0.1:8070/web/content/508-e88e947/web.assets_backend.js:941:1 renderLoop@http://127.0.0.1:8070/web/static/lib/nvd3/nv.d3.js:99:21