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 and aggregate in view

By
Ratmil Torres
on 3/18/15, 3:11 PM 560 views

How to group and aggregate in a view?

I have defined a model similar to the following:

   name: char

   group: many2one

   qty: float

   performance: function(float)

I would like to show view displaying group, qty and performance. But the group may be repeated for different records. So, I want to show every group only once, summing qty and performance (which is a function field).

I don´t what to show expandable groups. Just, one line per group.

0

Serpent Consulting Services Pvt. Ltd.

--Serpent Consulting Services Pvt. Ltd.--
4341
| 6 6 8
Gandhinagar, India
--Serpent Consulting Services Pvt. Ltd.--

Serpent Consulting Services Pvt. Ltd. Your Odoo/OpenERP Solution, just an email away!

Serpent Consulting Services Pvt. Ltd.
On 8/13/15, 4:00 AM

Ratmil,

Inside the search View, add a < filter string="Partner" context="{'group_by':'name of may2one field'}"/>

We've added groupby expand feature on Odoo Apps.

https://www.odoo.com/apps/modules/8.0/web_groupby_expand/

Hope this helps.

Thanks.

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: 3/18/15, 3:11 PM
Seen: 560 times
Last updated: 8/13/15, 4:00 AM