Odoo Help


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.


Sum attribute on xml - Odoo 8

Alejandro Perez Cosio
on 4/13/15, 3:03 PM 756 views

Dear All, 

I would want to sum a column in a tree view but only the rows with a specific 'status':
Is there a way to use domains to select which lines will be summed?

Something like:  

<field name="amount" attrs="{'sum': [('status','=','ontime')]}"/>

Best regards

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)


Asked: 4/13/15, 3:03 PM
Seen: 756 times
Last updated: 4/14/15, 7:55 AM