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

Group By Float Field for certain interval

By
Gregor Heger
on 11/30/15, 4:54 AM 311 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?

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