Odoo Help


Group By Float Field for certain interval

Gregor Heger
on 11/30/15, 4:54 AM 697 views

If one wants to group a model by a date, it is possible to specify the interval (year, quarter, month...) by doing field_date:year, field_date:month

But: How to do this with a float field? I have values such as [6.3, 6.5, 8.2, 8,6, 11]. I want to group them in an interval of 2. So I have the classes 6.0-8.0: [6.3, 6.5],  8.0-10.0: [8.2, 8.6], 10.0-12.0: [11].
This classes should be shown in the list view of my model, if I create the filter such like that: field_float:2.0.

How is it possible to realize it?

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: 11/30/15, 4:54 AM
Seen: 697 times
Last updated: 11/30/15, 4:54 AM