Skip to Content

How to Show the Total of a Column in an Odoo List View

Why some columns have a total and others none, why that total only counts the page, and how to get the total of every record.

Odoo list view manager: search row under the headers, row numbers, colored rows and cells, total of all orders
Odoo list view manager: search row under the headers, row numbers, colored rows and cells, total of all orders
Search by column in an Odoo list view: orders filtered as you type by customer and amount
Search by column in an Odoo list view: orders filtered as you type by customer and amount
Totals of all records in the Odoo list footer: sum, average, minimum or maximum per column
Totals of all records in the Odoo list footer: sum, average, minimum or maximum per column
Conditional formatting in Odoo lists: rows and cells colored when a value matches a rule
Conditional formatting in Odoo lists: rows and cells colored when a value matches a rule
Any field, or a field of a linked record like Customer > Country, added as a list column without Studio
Any field, or a field of a linked record like Customer > Country, added as a list column without Studio
Columns dialog: show, hide, drag to reorder, rename and resize columns, save named layouts
Columns dialog: show, hide, drag to reorder, rename and resize columns, save named layouts
Default list layouts published by the administrator for everyone or for a user group
Default list layouts published by the administrator for everyone or for a user group
List rows copied to paste into a spreadsheet, and a single cell value copied
List rows copied to paste into a spreadsheet, and a single cell value copied
Frozen first column and row numbers in the Odoo sales orders list
Frozen first column and row numbers in the Odoo sales orders list
Compact rows in the Odoo sales orders list
Compact rows in the Odoo sales orders list

"How do I display the total under a column in a list view?" is one of the most read questions on the Odoo forum. Two things surprise people: the total only shows up under the columns the view asks for, and even there it adds up the page on screen, not the whole list. This guide explains both, the native ways to add a total, and how to get the total of every record.

Why some columns have a total and others none

Odoo shows a total under a column only when the list view says so, with a sum attribute on the field (or avg, min, max). The sales order list has one on its amounts, so you see the total of the orders. Most other columns have none: no total, even for a quantity or a price.

Three native ways to add a total

1. With Studio (Odoo Enterprise)

Open the list in Studio, click the column, and in its properties set Aggregate to Sum or Average. The total appears for everyone using this view.

2. With an inherited view (developer)

Without Studio, add the attribute to the column in a view that inherits the list. The text of the attribute is the tooltip of the total:

<record id="my_list_total" model="ir.ui.view">
    <field name="name">my.model.list.total</field>
    <field name="model">my.model</field>
    <field name="inherit_id" ref="my_module.my_list_view"/>
    <field name="arch" type="xml">
        <field name="my_amount" position="attributes">
            <attribute name="sum">Total</attribute>
        </field>
    </field>
</record>

Use avg instead of sum for an average. Put it in a module, or create the inherited view in developer mode: editing the original view directly is lost at the next update.

3. By grouping the list

No setup at all: group the list by any field, a customer or a month. Each group row shows the subtotal of every record in the group for the number columns, not only the loaded ones. It is the quickest way to read a real total, at the cost of a grouped list.

The catch: the total counts the page, not the list

Without grouping, the footer adds up the rows loaded on screen: 80 by default. With 500 invoices in the search, the total is the one of the first 80, and nothing on screen says so. Select rows and the footer shows the total of the selection, again among the rows loaded. To get the real figure, people export to a spreadsheet or open a report.

Before

Ask for a Studio change or a developer. Read a total that counts the page. Export to a spreadsheet to get the real figure.

After

Pick Sum under any number column and read the total of every record.

Get it on the Odoo Apps Store

A total on any column, of every record

List View Manager adds a Σ button above every list view. Each number column gets its choice: Sum, Average, Minimum, Maximum or nothing.

  • The footer gives the total of every record that matches the search, computed by the server, even when the pager shows 80 of 512. A tooltip tells how many records it counts.
  • Selected rows get their own total, like the status bar of a spreadsheet.
  • Grouped lists follow the same choice: an average per customer, a maximum per month.
  • Each user keeps their choice on every list, and administrators can publish a default layout for a user group.
  • Amounts in several currencies are converted into the currency of the company on Odoo 19 and 20. On Odoo 18, which cannot convert them, the total is left out instead of being wrong.
Odoo list view total of all records: the Σ menu set to Average and the footer giving the average of the 15 sales orders while the pager shows 8
The pager shows 8 of 15 orders, the footer averages all 15.
SHARQIX certified: 100% tested

100% tested

The apps ship with automated tests. No risk.

Which way for which need

WayTotal ofWho can do it
StudioThe page on screenAn administrator, Enterprise only
Inherited viewThe page on screenA developer
GroupingEvery record, per groupAny user, on a grouped list
List View ManagerEvery record of the search, or the selectionAny user, on any list, Community or Enterprise

Questions people ask

Why does the total of my list not match my report?

Because the footer of a list adds up the rows loaded on screen, 80 by default, while a report counts every record. Group the list, raise the number of rows shown, or use a total computed on every record.

Can I add up a computed field?

Only if the field is stored. A computed field that is not stored is not in the database, so neither a grouped list nor a total of every record can add it up.

Does it work with Odoo Community?

Studio needs Enterprise. The inherited view, grouping and List View Manager work in Community and Enterprise. List View Manager runs on Odoo 18, 19 and 20, on Odoo.sh or your own server, not on Odoo Online.

Can I show an average instead of a sum?

Yes: the avg attribute in the view, Average in Studio, or Average in the Σ menu of List View Manager, which also offers the minimum and the maximum.

The same app adds the columns you need without Studio: see how to customize list views in Odoo without Studio, and an Odoo list view that works like Excel.

The real total, under the right column

No Studio, no developer, no export: choose the total of each column and read the figure of the whole search.

Get it on the Odoo Apps Store

Every feature and screenshot on the app page.
A question before you buy? Write to support@sharqix.com, we answer within one business day.

SHARQIX certified: 100% tested

Every SHARQIX app is 100% tested.

Browse all our apps