Skip to Content
Menu
This question has been flagged
1853 Views

By using board.board model I want to add multiple Many2many fields in graph view and show it as pie chart. But it is not showing in proper format.

Any alternate way to do this please comment.


<!-- Pie Chart For Technologies View -->

<record id="technology_graph_view" model="ir.ui.view">
<field name="name">technology.graph</field>
<field name="model">res.partner</field>
<field name="arch" type="xml">
<graph string="Technologies">
<field name="tech_ids" mode="graph">
<field name="name" type="measure"/>
</field>
</graph>
</field>
</record>

<!-- Action For Pie Chart View of Technologies -->
<record id="action_window_partner_profiling_pie_chart_technologies" model="ir.actions.act_window">
<field name="name">Technologies Pie Chart</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">res.partner</field>
<field name="view_type">form</field>
<field name="view_mode">graph</field>
<field name="view_id" ref="kw_partner_relationship_management.technology_graph_view"/>
</record>

<!-- Dashboard View -->

<record model="ir.ui.view" id="partner_dashboard_view">
<field name="name">Partner Dashboard</field>
<field name="model">board.board</field>
<field name="arch" type="xml">
<form string="Partner Dashboard" version="7.0">
<board style="1-3">
<column>
<action name="%(action_window_partner_profiling_pie_chart_technologies)d" string="Technologies"/>
</column>
</board>
</form>
</field>
</record>

<!-- Action For Dashboard -->

<record model="ir.actions.act_window" id="partner_dash_view_action">
<field name="name">Partner Dashboard</field>
<field name="res_model">board.board</field>
<field name="view_type">form</field>
<field name="view_mode">form</field>
<field name="usage">menu</field>
<field name="view_id" ref="partner_dashboard_view"/>
<field name="target">inline</field>
<field name="help" type="html">
<div class="oe_empty_custom_dashboard">
<p>
<b>Your personal dashboard is empty.</b>
</p>
<p>
To add your first report into this dashboard, go to any
menu, switch to list or graph view, and click <i>'Add to
Dashboard'</i> in the extended search options.
</p>
<p>
You can filter and group data before inserting into the
dashboard using the search options.
</p>
</div>
</field>
</record>
Avatar
Discard