Odoo Help


Record grouping in tree view [Closed]

on 4/15/13, 1:23 PM 2,271 views

The Question has been closed

Sudhir Arya (SA)
on 04/18/2013 05:09:57

Say I have a model where one of the fields is a date field. I have defined a tree view and a form view, and an action for them. Now I want to group records of the model by month. What are the options? Search view with a filter only, or are there also other ways to implement this task?

Sudhir Arya (SA)
On 4/16/13, 3:29 AM

You can define filter in group by in search view like this:

<group expand="0" string="Group By...">
    <filter string="Order Date" domain="[]" context="{'group_by':'your_date_field'}"/>

You can find more about search at Search View.

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

0 follower(s)


Asked: 4/15/13, 1:23 PM
Seen: 2271 times
Last updated: 1/13/16, 10:52 AM