コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
3678 ビュー

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

Is it possible?

アバター
破棄
最善の回答

     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>

アバター
破棄
著作者

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.

関連投稿 返信 ビュー 活動
2
5月 23
10075
3
4月 23
53420
0
8月 21
2707
0
1月 21
1836
1
4月 19
5510