From 1ae356146ccfec22f624febbae47df686393c1eb Mon Sep 17 00:00:00 2001 From: Dhawal Limbuwala Date: Thu, 9 Nov 2017 08:46:41 +0000 Subject: [IMP] doc: add some documentation of the attributes operation closes odoo/odoo#20818 Signed-off-by: Xavier Morel (xmo) --- doc/reference/qweb.rst | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'doc/reference') diff --git a/doc/reference/qweb.rst b/doc/reference/qweb.rst index 813866d9d0e..c1c7ec8e7c4 100644 --- a/doc/reference/qweb.rst +++ b/doc/reference/qweb.rst @@ -487,6 +487,11 @@ on the extended template to select *context nodes* to which the specified the node's body replaces the context node's children ``replace`` the node's body is used to replace the context node itself +``attributes`` + the nodes's body should be any number of ``attribute`` elements, + each with a ``name`` attribute and some textual content, the named + attribute of the context node will be set to the specified value + (either replaced if it already existed or added if not) No operation if no ``t-operation`` is specified, the template body is interpreted as javascript code and executed with the context node as ``this`` -- cgit v1.2.3 From 4e6ee3ac97041653ff15a77abd77084dc0c9f525 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9ry=20Debongnie?= Date: Tue, 23 Jul 2019 08:08:03 +0000 Subject: [FIX] web: allow groupby buttons in list view at any level The initial implementation of the special group by buttons in list groups only supported the first level of groupby. So, if one grouped a list view by field A, it worked (if A had a groupby defined). However, if we want to group by B/A, this no longer works. opw 2040725 closes odoo/odoo#35090 Signed-off-by: VincentSchippefilt --- doc/reference/views.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/reference') diff --git a/doc/reference/views.rst b/doc/reference/views.rst index 56dca21bf1d..b3504add3c1 100644 --- a/doc/reference/views.rst +++ b/doc/reference/views.rst @@ -345,7 +345,7 @@ Possible children elements of the list view are: ``name`` the name of a many2one field (on the current model). Custom header will be - displayed when grouping the view on this field name (only for first level). + displayed when grouping the view on this field name. .. code-block:: xml -- cgit v1.2.3 From 5c340913616a301060769a1503733a6ed1a86852 Mon Sep 17 00:00:00 2001 From: Julien Mougenot Date: Thu, 11 Jul 2019 12:45:15 +0000 Subject: [FIX] web: improve editable list column widths Changed the way some field types are displayed. Before this commit, column width in a list were calculated according to a given factor (integer), determining their weight. Now, some specific fields have an hardcoded width instead. This task also slightly tweaks some width factors, in order to try to have a better layout in most list views Task 1985916 closes odoo/odoo#35147 Signed-off-by: VincentSchippefilt --- doc/reference/views.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'doc/reference') diff --git a/doc/reference/views.rst b/doc/reference/views.rst index b3504add3c1..0d7ee948ffc 100644 --- a/doc/reference/views.rst +++ b/doc/reference/views.rst @@ -331,7 +331,8 @@ Possible children elements of the list view are: ``width_factor`` (for ``editable``) the column relative width (as the layout is fixed) ``width`` (for ``editable``) - the column width (as the layout is fixed) + the column width (as the layout is fixed). It is a string describing the + width css property, such as '100px'. .. note:: if the list view is ``editable``, any field attribute from the :ref:`form view ` is also valid and will -- cgit v1.2.3 From 7d78795f8b34bc6a8afde18427a1c26901824db3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9ry=20Debongnie?= Date: Thu, 25 Jul 2019 09:32:32 +0000 Subject: [FIX] web: properly handle (grouped list) pager when last field is numeric closes odoo/odoo#35176 Signed-off-by: VincentSchippefilt --- doc/reference/views.rst | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'doc/reference') diff --git a/doc/reference/views.rst b/doc/reference/views.rst index 0d7ee948ffc..57375e1dc0c 100644 --- a/doc/reference/views.rst +++ b/doc/reference/views.rst @@ -338,6 +338,14 @@ Possible children elements of the list view are: :ref:`form view ` is also valid and will be used when setting up the inline form view + .. note:: When a list view is grouped, numeric fields are aggregated and + displayed for each group. Also, if there are too many records in + a group, a pager will appear on the right of the group row. For + this reason, it is not a good practice to have a numeric field in + the last column, when the list view is in a situation where it can + be grouped (it is however fine for x2manys field in a form view: + they cannot be grouped). + ``groupby`` defines custom headers (with buttons) for the current view when grouping records on many2one fields. It is also possible to add `field`, inside the -- cgit v1.2.3