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.


How to sort Journal Entries by 'amount' column on tree_view?

on 4/13/16, 1:51 AM 179 views

I want to sort by 'amount' capability on tree view.

Is it possible?

Indrabhan Bhamare
On 4/13/16, 6:11 AM

     Hello dbuser

  yes  it is possible. check follwoing below code  version odoo8

<?xml version="1.0"?>

<tree colors="blue:state == 'draft';black:state == 'posted'" string="Journal Entries" default_order="amount">

<field name="name"/>

<field name="ref"/>

<field name="date"/>

<field name="period_id"/>

<field name="journal_id"/>

<field name="partner_id"/>

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

<field name="to_check"/>

<field name="state"/>


I know this trick for default_order. I don't want to disturb default_order. I just need add "amount sorting" on addition of default order.

on 4/13/16, 9:00 PM

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/16, 1:51 AM
Seen: 179 times
Last updated: 4/13/16, 6:14 AM