This question has been flagged
1 Reply
7945 Views

Hi, I am using Openoffice for reports in openerp. I want to sum all the rows of a single column as total. Please help me,its urgent!

Avatar
Discard
Author

I would like to sum amount_tax as one and total as one in my report, I don't have lines in my report. Please help.

Best Answer
sum(YOUR_LINES, 'FIELD_TO_SUM')

for example, if you want sum all the price_unit of invoice lines you code must be:

sum(o.invoice_line, 'price_unit')

Sum is a native function in aeroo

Avatar
Discard
Author

I would like to sum amount_tax as one and total as one in my report, I don't have lines in my report. Please help.

Author

any solution?