[ADD] document @default_order in list views

closes #2623
This commit is contained in:
Abhishek Jaiswal 2014-09-23 10:23:53 +05:30 committed by Xavier Morel
parent 2592f149a0
commit b374c51474
1 changed files with 8 additions and 0 deletions

View File

@ -132,6 +132,14 @@ root can have the following attributes:
<reference/views/form>`'s fields and buttons are thus accepted by list <reference/views/form>`'s fields and buttons are thus accepted by list
views although they may not have any meaning if the list view is views although they may not have any meaning if the list view is
non-editable non-editable
``default_order``
overrides the ordering of the view, replacing the model's default order.
The value is a comma-separated list of fields, postfixed by ``desc`` to
sort in reverse order:
.. code-block:: xml
<tree default_order="sequence,name desc">
``colors`` ``colors``
allows changing the color of a row's text based on the corresponding allows changing the color of a row's text based on the corresponding
record's attributes. record's attributes.