From f8a114b334068ba34b474647fb7b566767a9fd22 Mon Sep 17 00:00:00 2001 From: Gorash Date: Thu, 1 Feb 2024 17:06:06 +0100 Subject: [PATCH] [IMP] all: replace in Remove historical error from semantically incorrect . Viewtiverse task-3599136 task-27709 task-3414068 closes odoo/documentation#8446 Related: odoo/odoo#159909 Related: odoo/enterprise#59787 Related: odoo/upgrade#5884 Signed-off-by: Christophe Matthieu (chm) --- .../development/coding_guidelines.rst | 6 +- .../developer/reference/backend/actions.rst | 8 +-- .../user_interface/view_architectures.rst | 63 +++++++++---------- .../field_attribute_widget.rst | 4 +- .../root_attribute_default_order.rst | 4 +- content/developer/tutorials/backend.rst | 32 +++++----- .../server_framework_101/05_firstui.rst | 4 +- .../server_framework_101/06_basicviews.rst | 10 +-- .../server_framework_101/07_relations.rst | 8 +-- .../server_framework_101/11_sprinkles.rst | 8 +-- content/developer/tutorials/website.rst | 8 +-- 11 files changed, 76 insertions(+), 79 deletions(-) diff --git a/content/contributing/development/coding_guidelines.rst b/content/contributing/development/coding_guidelines.rst index d473fa63b..1dae7f073 100644 --- a/content/contributing/development/coding_guidelines.rst +++ b/content/contributing/development/coding_guidelines.rst @@ -263,10 +263,10 @@ To declare a record in XML, the **record** notation (using **) is recomm object_name - + - + @@ -288,7 +288,7 @@ Use the following pattern : * For a menu: :samp:`{}_menu`, or :samp:`{}_menu_{do_stuff}` for submenus. * For a view: :samp:`{}_view_{}`, where *view_type* is - ``kanban``, ``form``, ``tree``, ``search``, ... + ``kanban``, ``form``, ``list``, ``search``, ... * For an action: the main action respects :samp:`{}_action`. Others are suffixed with :samp:`_{}`, where *detail* is a lowercase string briefly explaining the action. This is used only if diff --git a/content/developer/reference/backend/actions.rst b/content/developer/reference/backend/actions.rst index 564cf6675..2005debde 100644 --- a/content/developer/reference/backend/actions.rst +++ b/content/developer/reference/backend/actions.rst @@ -72,7 +72,7 @@ Its fields are: model to present views for ``views`` a list of ``(view_id, view_type)`` pairs. The second element of each pair - is the category of the view (tree, form, graph, ...) and the first is + is the category of the view (list, form, graph, ...) and the first is an optional database id (or ``False``). If no id is provided, the client should fetch the default view of the specified type for the requested model (this is automatically done by @@ -105,7 +105,7 @@ list and form views:: { "type": "ir.actions.act_window", "res_model": "res.partner", - "views": [[False, "tree"], [False, "form"]], + "views": [[False, "list"], [False, "form"]], "domain": [["customer", "=", true]], } @@ -123,7 +123,7 @@ dialog:: In-database window actions have a few different fields which should be ignored by clients, mostly to use in composing the ``views`` list: -``view_mode`` (default= ``tree,form`` ) +``view_mode`` (default= ``list,form`` ) comma-separated list of view types as a string (/!\\ No spaces /!\\). All of these types will be present in the generated ``views`` list (with at least a ``False`` view_id) ``view_ids`` @@ -139,7 +139,7 @@ by clients, mostly to use in composing the ``views`` list: - tree + list diff --git a/content/developer/reference/user_interface/view_architectures.rst b/content/developer/reference/user_interface/view_architectures.rst index ac7090ec3..9c90909fd 100644 --- a/content/developer/reference/user_interface/view_architectures.rst +++ b/content/developer/reference/user_interface/view_architectures.rst @@ -265,11 +265,11 @@ The `field` element can have the following attributes: :noindex: The comma-separated list of display modes (view types) to use for the field's linked records. - Allowed modes are: `tree`, `form`, `kanban`, and `graph`. + Allowed modes are: `list`, `form`, `kanban`, and `graph`. :requirement: Optional :type: str - :default: `tree` + :default: `list` :scope: :class:`~odoo.fields.One2many` and :class:`~odoo.fields.Many2many` fields .. include:: view_architectures/generic_attribute_class.rst @@ -321,9 +321,9 @@ The `field` element can have the following attributes: .. code-block:: xml - + - +
@@ -1154,7 +1154,7 @@ The `` element can have the following attributes: List ==== -The root element of list views is `tree`\ [#treehistory]_. +The root element of list views is `list` (the previous name was `tree`). .. admonition:: Possible structure and representation of its rendering @@ -1166,16 +1166,16 @@ The root element of list views is `tree`\ [#treehistory]_. * - .. code-block:: xml - + ... - + .. _reference/view_architectures/list/root: Root attributes --------------- -Optional attributes can be added to the root element `tree` to customize the view. +Optional attributes can be added to the root element `list` to customize the view. .. include:: view_architectures/root_attribute_string.rst @@ -1269,9 +1269,9 @@ Optional attributes can be added to the root element `tree` to customize the vie .. example:: .. code-block:: xml - + ... - + :requirement: Optional :type: :ref:`Python expression ` @@ -1336,9 +1336,9 @@ Using the same field multiple times in a list view is not supported .. code-block:: xml - + - + The `field` element can have the following attributes: @@ -1466,12 +1466,12 @@ The `field` element can have the following attributes: * - .. code-block:: xml - + - + .. _reference/view_architectures/list/button: @@ -1480,10 +1480,10 @@ The `field` element can have the following attributes: .. code-block:: xml - +