Tôi muốn hiển thị biểu đồ bằng odoo. trong đó tôi có hai trường:Đồ thị Boolean Odoo?
Ngày trong trục x.
Boolean trong trục y.
odoo sử dụng nvd3.js để hiển thị bảng xếp hạng này,
đây là view.xml:
<record model="ir.ui.view" id="id_view">
<field name="name">test.base.graph.view16</field>
<field name="model">module.base</field>
<field name="type">graph</field>
<field name="arch" type="xml">
<graph string="test" type="bar" >
<field name="date" interval="day" type="row"/>
<field name="boolean" type="measure"/>
</graph>
</field>
</record>
mã này không làm việc cho tôi, nó trả về một đồ thị rỗng. bất kỳ ai có ý tưởng về vấn đề này.
Cảm ơn, nhưng tôi không muốn thay đổi Type của các trường (từ boolean để nguyên). – Yacino