[FIX] search panel: fix bad indentation
closes odoo/documentation#6204
X-original-commit: 82055c1f15
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
This commit is contained in:
parent
93dc1e87bd
commit
ae05fe478d
@ -2255,7 +2255,7 @@ are specified as direct children of the ``searchpanel`` with tag name ``field``.
|
|||||||
the name of the field to filter on
|
the name of the field to filter on
|
||||||
|
|
||||||
:select:
|
:select:
|
||||||
string_ chooses from ``one``, ``multi``, ``groups``, ``string``, ``icon`` or ``color`` (default: ``one``)
|
string_ chooses from ``one`` or ``multi`` (default: ``one``)
|
||||||
|
|
||||||
determines the behavior and display.
|
determines the behavior and display.
|
||||||
|
|
||||||
@ -2269,58 +2269,58 @@ are specified as direct children of the ``searchpanel`` with tag name ``field``.
|
|||||||
several values can be selected (checkboxes). Supported field
|
several values can be selected (checkboxes). Supported field
|
||||||
types are many2one, many2many and selection.
|
types are many2one, many2many and selection.
|
||||||
|
|
||||||
``groups``
|
``groups``
|
||||||
restricts to specific users
|
restricts to specific users
|
||||||
|
|
||||||
``string``
|
``string``
|
||||||
determines the label to display
|
determines the label to display
|
||||||
|
|
||||||
``icon``
|
``icon``
|
||||||
specifies which icon is used
|
specifies which icon is used
|
||||||
|
|
||||||
``color``
|
``color``
|
||||||
determines the icon color
|
determines the icon color
|
||||||
|
|
||||||
Additional optional attributes are available in the ``multi`` case:
|
Additional optional attributes are available in the ``multi`` case:
|
||||||
|
|
||||||
|
.. rst-class:: o-definition-list
|
||||||
|
|
||||||
|
``enable_counters``
|
||||||
|
default is false. If set to true the record counters will be computed and
|
||||||
|
displayed if non-zero.
|
||||||
|
|
||||||
|
This feature has been implemented in case performances would be too bad.
|
||||||
|
|
||||||
|
Another way to solve performance issues is to properly override the
|
||||||
|
``search_panel_select_range`` and ``search_panel_select_multi_range`` methods.
|
||||||
|
|
||||||
|
``expand``
|
||||||
|
default is false. If set to false categories or filters with 0 records will be hidden.
|
||||||
|
|
||||||
|
``limit``
|
||||||
|
default is 200. Integer determining the maximal number of values to fetch for the field.
|
||||||
|
If the limit is reached, no values will be displayed in the search panel and an error message will
|
||||||
|
appear instead because we consider that is useless / bad performance-wise. All values will be
|
||||||
|
fetched if set to 0.
|
||||||
|
|
||||||
|
Additional optional attributes are available according to the chosen case:
|
||||||
|
|
||||||
|
- For the ``one`` case:
|
||||||
|
|
||||||
.. rst-class:: o-definition-list
|
.. rst-class:: o-definition-list
|
||||||
|
|
||||||
``enable_counters``
|
``hierarchize``
|
||||||
default is false. If set to true the record counters will be computed and
|
(only available for many2one fields) default is true. Handles the display style of categories :
|
||||||
displayed if non-zero.
|
|
||||||
|
|
||||||
This feature has been implemented in case performances would be too bad.
|
If set to true child categories will appear under their related parent.
|
||||||
|
If not, all categories will be displayed on the same level.
|
||||||
|
|
||||||
Another way to solve performance issues is to properly override the
|
- For the ``multi`` case:
|
||||||
``search_panel_select_range`` and ``search_panel_select_multi_range`` methods.
|
|
||||||
|
|
||||||
``expand``
|
.. rst-class:: o-definition-list
|
||||||
default is false. If set to false categories or filters with 0 records will be hidden.
|
|
||||||
|
|
||||||
``limit``
|
``domain``:
|
||||||
default is 200. Integer determining the maximal number of values to fetch for the field.
|
determines conditions that the comodel records have to satisfy.
|
||||||
If the limit is reached, no values will be displayed in the search panel and an error message will
|
|
||||||
appear instead because we consider that is useless / bad performance-wise. All values will be
|
|
||||||
fetched if set to 0.
|
|
||||||
|
|
||||||
Additional optional attributes are available according to the chosen case:
|
|
||||||
|
|
||||||
- For the ``one`` case:
|
|
||||||
|
|
||||||
.. rst-class:: o-definition-list
|
|
||||||
|
|
||||||
``hierarchize``
|
|
||||||
(only available for many2one fields) default is true. Handles the display style of categories :
|
|
||||||
|
|
||||||
If set to true child categories will appear under their related parent.
|
|
||||||
If not, all categories will be displayed on the same level.
|
|
||||||
|
|
||||||
- For the ``multi`` case:
|
|
||||||
|
|
||||||
.. rst-class:: o-definition-list
|
|
||||||
|
|
||||||
``domain``:
|
|
||||||
determines conditions that the comodel records have to satisfy.
|
|
||||||
|
|
||||||
A domain might be used to express a dependency on another field (with select="one")
|
A domain might be used to express a dependency on another field (with select="one")
|
||||||
of the search panel. Consider
|
of the search panel. Consider
|
||||||
|
Loading…
Reference in New Issue
Block a user