Add simple counts/totals/averages to search views

Registered by Numérigraphe

When OpenERP users need a precise summary information, it is often a very simple one and writting a report object is both too long and overkill. For example, how many product X have we shipped to customer Y between 2010-01-01 and 2010-01-07, and what was the average unit price?
For the moment a user's best move is to search for the records in OpenERP, export them to Excel and do the sums and averages there.
It would be nice if we could just add a few tag in the search view definition, and OpenERP could compute these simple sums/averages and show them at the bottom of the screen.

Blueprint information

Status:
Not started
Approver:
None
Priority:
Undefined
Drafter:
None
Direction:
Needs approval
Assignee:
None
Definition:
New
Series goal:
None
Implementation:
Unknown
Milestone target:
None

Whiteboard

Tree views can actually already have a sum displayed on the bottom of the view : add the sum attribute to each field you want summed.
Example in invoice tree view:
                    <field name="amount_untaxed" sum="Untaxed amount"/>
It would be nice if we could have other operations : average, arithmetic product, biggest value, smallest value etc.
Please file a wishlist bug reports for each operation wanted and attach to this blueprint.

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.