From: Abhishek Jaiswal Date: Tue, 23 Sep 2014 04:53:53 +0000 (+0530) Subject: [ADD] document @default_order in list views X-Git-Url: http://git.inspyration.org/?p=odoo%2Fodoo.git;a=commitdiff_plain;h=b374c51474c3b9976c6b6334f281bc84f370a2f3 [ADD] document @default_order in list views closes #2623 --- diff --git a/doc/reference/views.rst b/doc/reference/views.rst index 3f5b2ea..bfb49c8 100644 --- a/doc/reference/views.rst +++ b/doc/reference/views.rst @@ -132,6 +132,14 @@ root can have the following attributes: `'s fields and buttons are thus accepted by list views although they may not have any meaning if the list view is 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 + + ``colors`` allows changing the color of a row's text based on the corresponding record's attributes.