Inside field_name has json data which i returned using python. Now I want to make a graph using js and widget. If you have any solution then please provide me.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Akuntansi
- Inventaris
- PoS
- Project
- MRP
Pertanyaan ini telah diberikan tanda
Hi,
If you're interested in rendering a graph within a view, it's achievable
by creating a new field widget. You can find references on how to
create a field widget by visiting the following link: https://www.odoo.com/documentation/17.0/developer/howtos/javascript_field.html
Alternatively, if you prefer to load a graph inside a dashboard/client action, you can refer to the documentation provided here:https://www.odoo.com/documentation/17.0/developer/tutorials/discover_js_framework/02_build_a_dashboard.html. This documentation demonstrates adding a pie chart using Chart.js.
Hope it helps
Menikmati diskusi? Jangan hanya membaca, ikuti!
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
DaftarPost Terkait | Replies | Tampilan | Aktivitas | |
---|---|---|---|---|
|
0
Mar 24
|
13 | ||
|
1
Mar 24
|
1839 | ||
|
1
Jul 24
|
1173 | ||
|
0
Jan 21
|
12688 | ||
|
2
Des 19
|
9054 |
<div class="card-body">
<t t-name="web.JournalBodyGraph">
<div class="o_dashboard_graph" style="margin:auto;">
<field name="field_name" ylabel="Value 1" xlabel="Value 2" graph_type="line" widget="widget_name"/>
</div>
</t>
</div>