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.

2

Record grouping in tree view [Closed]

By
Antanas
on 4/15/13, 1:23 PM 2,043 views

The Question has been closed

by
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?

3

Sudhir Arya (SA)

--Sudhir Arya (SA)--
10150
| 6 8 8
Ahmedabad, India
--Sudhir Arya (SA)--

Working as an OpenERP/Odoo developer and a Team Leader 

Top 5 Odoo contributor On Stackoverflow

LinkedIn

Blog

Stackoverflow

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'}"/>
</group>

You can find more about search at Search View.

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

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