From 8a91b816fc0f665f2884c8165edba57e41b22a6c Mon Sep 17 00:00:00 2001 From: Mathieu Duckerts-Antoine Date: Fri, 21 Feb 2025 11:32:14 +0100 Subject: [PATCH] [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 closes odoo/documentation#12133 Related: odoo/odoo#198733 Signed-off-by: Mathieu Duckerts-Antoine (dam) --- .../reference/user_interface/view_architectures.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/content/developer/reference/user_interface/view_architectures.rst b/content/developer/reference/user_interface/view_architectures.rst index c17a8e12f..c1374aa0b 100644 --- a/content/developer/reference/user_interface/view_architectures.rst +++ b/content/developer/reference/user_interface/view_architectures.rst @@ -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: