I want to sort by 'amount' capability on tree view.
Is it possible?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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
مايو 23
|
10951 | |||
|
3
أبريل 23
|
54636 | |||
|
0
أغسطس 21
|
3073 | |||
|
0
يناير 21
|
2153 | |||
|
1
أبريل 19
|
6048 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.