diff options
| author | Christophe Simonis <chs@odoo.com> | 2014-12-03 15:18:36 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2014-12-03 15:18:36 +0100 |
| commit | e17222a38d2d4cd32057a59e65be82edd103836c (patch) | |
| tree | 59675679259234e9a3348f0e48d860e8324344b7 /doc/reference | |
| parent | 4720c8898b24a0eb60232697f827bed3ebcf40ab (diff) | |
| parent | 2e092ace29d88e0ea892708b93dffa94a283e771 (diff) | |
[MERGE] forward port of branch 8.0 up to 2e092ac
Diffstat (limited to 'doc/reference')
| -rw-r--r-- | doc/reference/views.rst | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/reference/views.rst b/doc/reference/views.rst index 3f5b2ea2043..bfb49c81261 100644 --- a/doc/reference/views.rst +++ b/doc/reference/views.rst @@ -132,6 +132,14 @@ root can have the following attributes: <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 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`` allows changing the color of a row's text based on the corresponding record's attributes. |
