Skip to Content
Menu
This question has been flagged
1 Reply
2777 Views

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

Is it possible?

Avatar
Discard
Best Answer

     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"/>

                </tree>

Avatar
Discard
Author

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.

Related Posts Replies Views Activity
2
May 23
8190
3
Apr 23
48684
0
Aug 21
2008
0
Jan 21
1156
1
Apr 19
4628