Odoo Help


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

on 7/3/13, 8:34 PM 1,620 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?

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

And then display them in their own graph view.

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

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.


Odoo Training Center

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

Test it now

Question tools

1 follower(s)


Asked: 7/3/13, 8:34 PM
Seen: 1620 times
Last updated: 3/16/15, 8:10 AM