How to manipulate the sum() function for the tree (group by) view?
I have a problem and I need your help ;)
When I make filter with group by, I have at the bottom of the page the (sum) number. Thats okay, because I added sum() function in the tree view for this specific view and the fields. (see screenshot 1):
This is the "sum" of all group by rows.
Now when I open one specific group by row, like this (see screenshot 2) and select all in this group, the sum is changing (see screenshot 3). Why is this changing?
Is there any possibility to not calculate the sum when I select a row with the "checkboxes"? I need all time the first value like in (screenshot 1).
It should not change.
Where can I find that function in the odoo10 code?
Thank you for your help.