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.

0

Is there a way to limit records shown in a graph?

By
vim24
on 7/3/13, 8:34 PM 1,110 views

I would like to create a graph for a dashboard showing the company debtors, but with the number of debtors our company has the graph becomes un-readable pretty fast. Is there a way to limit the number of records shown in a graph? I have tried the standard:

<field name="limit">xx</field>

which works fine on tree views, but doesn't seem to have any effect on graphs.

Any ideas on how I could achieve something like this?

0
vim24
On 7/4/13, 1:50 AM

Well to answer my own question, I've ended up just creating a new class which I fill up with a database query in the init method. That way I can limit the entries using

SELECT xxxxx
FROM xxxxx
LIMIT xx

And then display them in their own graph view.

Still would be interested if anyone has a shorter way of achieving the same thing...

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: 7/3/13, 8:34 PM
Seen: 1110 times
Last updated: 3/16/15, 8:10 AM