[ADD] search panel: document new field attribute "depth"

We document the new attribute "depth" available for search panel fields of type
"category" introduced in https://github.com/odoo/odoo/pull/198733.

Task ID: 4579118
This commit is contained in:
Mathieu Duckerts-Antoine 2025-02-21 11:32:14 +01:00
parent 8c685239b4
commit 22daa15a25

View File

@ -2261,6 +2261,16 @@ attributes:
:default: `True`
:scope: :class:`~odoo.fields.Many2one` fields
.. attribute:: depth
:noindex:
If set to a non zero integer, the hierarchy (if any) will be unfold up to the given level.
:requirement: Optional
:type: integer
:default: `0`
:scope: :class:`~odoo.fields.Many2one` fields
When the `field` element has the `select=multi` attribute set, it can have the following additional
attributes: