Community mailing list archives
Re: Group By in Odoo v.8by
You should use the "sum" attribute in the tree view for the fields you want to view their total.
for eg: <field name="amount_total" sum="Total Amount"/>
On 20 January 2016 at 19:45, Argiris Gerogiannis <email@example.com> wrote:
Hello community!I am implementing an expensess custom module for a client.My code could be found here:I have read from stackoverflow (http://stackoverflow.com/questions/27536186/how-to-sum-other-columns-when-using-group-by-in-a-tree-view)that is possible for a field to be inserted for a group by.My need is to view others fields total while list view is on "group by" mode.I need to see Total Profit and Total Expensess.I tried to implement the above solution but with no success.Please could anyone provide any help ?Thank you in advancve,Argiris