Odoo Help

Welcome!

This community 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.

4

Dashboard doesn't save state v7

By
Flyguy
on 2/19/13, 5:05 AM 2,443 views

The views and graphs that I have created and added to my dashboard lose their filter, group and graph type settings

Example: I create a list with customers, grouped by country and add it to my dashboard. I also create a pie chart with opportunities grouped by campagin. I add both to my dashboard. After log out/in I can see a list with all my customers, but they are not grouped by country. I can also see a barchart with opportunities, but they are not grouped by campaign.

I have also tried saving these filters first, and then adding them to my dashboard, but the result is the same...

Hello, it would be more appropriate to report this as a bug on launchpad (https://launchpad.net/openobject).

Gilles Major (gim)
on 2/19/13, 5:07 AM

I have the same issue, it seems to be a bug in v7. did someone report it? or i have to.

Obay Albadri
on 4/22/13, 11:11 AM

I would report it if I were you. I've put it on launchpad, but didn't send a mail to their helpdesk.

Flyguy
on 4/23/13, 5:46 AM

@Flyguy, Could you write here the link to the bug report you putted on Launchpad ?

Camptocamp SA
on 4/30/13, 10:03 AM

https://bugs.launchpad.net/openobject

Pablo
on 8/20/13, 6:39 PM

Just an idea - I notice if you "upgrade" then various views and filters are lost!

Cameron
on 11/4/13, 6:45 AM
1
shashank verma
On 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
On 8/9/16, 11:58 PM

Hello
Any workaround for this?

[Odoo 8.1]

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

Hello

 

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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 2/19/13, 5:05 AM
Seen: 2443 times
Last updated: 8/9/16, 11:58 PM