Odoo Help

4

4
9 Answers
1
shashank verma India
7/25/14, 3:58 PM

Hello flyguy,

I think this is not a bug in odoo. This is how Structure has been designed in odoo.
If someone  noticed one thing while creating your 1st dashboard from menu->reporting->mydashboard: see help description :-

***************************************************************
Your personal dashboard is empty.

To add your first report into this dashboard, go to any menu, switch to list or graph view, and click 'Add to Dashboard' in the extended search options.

You can filter and group data before inserting into the dashboard using the search options.
***************************************************************

This means the user select view mode of any object and create dashboard. So if your graph mode is "bar" then dashboard will always remain in "bar" mode.
lets take an example:

1.go to sale->sale order->select graph mode

2. now u can see that your garph is in bar mode

3. from search bar click create dashboard

4.go back to reporting->my dashboard

5.now u see the dashboard is in  bars mode.

This will remain static always.
So if a user wants to change the graph mode to piechart despite of weather user login or logout  then we need to hack code of sale order dashboard.

Do the following steps to make piechart dashboard for sale order:

1. Edit the code of sale order module
2. go to openerp addons->sale->edit sale_view.xml file
3. You can view the graph code something like this:


        <record model="ir.ui.view" id="view_sale_order_graph">
            <field name="name">sale.order.graph</field>
            <field name="model">sale.order</field>
            <field name="arch" type="xml">
                <graph string="Sales Orders" type="bar">
                    <field name="partner_id"/>
                    <field name="amount_total" operator="+"/>
                </graph>
            </field>
        </record>

4. modify this line: <graph string="Sales Orders" type="bar">
to :<graph string="Sales Orders" type="pie">

5. so final code will  look like this-
<record model="ir.ui.view" id="view_sale_order_graph">
            <field name="name">sale.order.graph</field>
            <field name="model">sale.order</field>
            <field name="arch" type="xml">
                <graph string="Sales Orders" type="pie">
                    <field name="partner_id"/>
                    <field name="amount_total" operator="+"/>
                </graph>
            </field>
        </record>

6. restart your erp server

7. go back to reporting->mydashboard-> now ur dashboard is in pie chart mode

NOTE: filteration and group by remains alive even if you login or logout. I tested and its works fine.

0
Wilbert Tan Indonesia
8/9/16, 11:58 PM

Hello
Any workaround for this?

[Odoo 8.1]

0
flg France
7/25/14, 10:50 AM

Hello

 

Any news on this ? I get the same issue in v8 RC1

Ask a Question
Writer
Tags
Keep Informed
1 follower(s)
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register
Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now