Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
3602 Prikazi

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

Is it possible?

Avatar
Opusti
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
Opusti
Avtor

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 Odgovori Prikazi Aktivnost
2
maj 23
9975
3
apr. 23
53180
0
avg. 21
2670
0
jan. 21
1761
1
apr. 19
5416