Odoo Help


Get the 'Total Sum' of a Function Field

on 7/7/13, 3:34 AM 2,571 views


I have a tree view were I would like to have the total sum of a field called balance.

I already do this with a field called Payments in the following way:

<field name="payments" sum="Total Amount"/>

But payments is a simple integer field, when I try the same with a fields.function then nothing happens.

Any idea how can I get the sum for a function field?

Any tip much appreciated! Thanks!


Omal Bastin

--Omal Bastin--

| 6 6 8
Kochi, Kerala, India
--Omal Bastin--

Swiming deep into openERP/ODOO

Omal Bastin
On 7/7/13, 5:17 AM

For your functional field use store=True

Hi, I seted store=Ture but still no luck. I still call the field with sum="Total Amount" or do I have to change something in the view.xml file? Thanks A LOT for your help!

on 7/7/13, 4:22 PM

Actually you are right, Store = True make it works. My problem was that I was using type='Integer' instead of type='integer' and I was not getting any error.

on 7/8/13, 3:26 PM

About This Community

This platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)


Asked: 7/7/13, 3:34 AM
Seen: 2571 times
Last updated: 3/16/15, 8:10 AM