Skip to content

Commit 439c452

Browse files
committed
[IMP] reference/user_interface: reformat and clarify views reference
In particular, the following changes are made: - Use the `class` and `attribute` admonitions along with custom attributes to define classes, views' root attributes, views' components, and attribute values. This allows re-using the responsive design that was made for reference lists, and getting rid of the previous implementation that relied on class attributes, which were not intended for this usage and reduce readability while hindering further contributions due to a lack of flexibility (no admonitions, sub-attributes...) - Use definition lists to define view types to allow for clearer and longer descriptions. - Rewrite and restructure the explanations when there is a lack clarity. - Extract duplicated content to included RST files. - Display SVG images into dedicated admonitions. - Fix RST and English mistakes. - Rename `view_architecture` to `view_architectures`, as it lists all existing architectures and doesn't describe "the architecture of a view". - Replace underscores with hyphens in image file names to improve SEO. task-3458320 closes #5237 Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
1 parent 6a7bc2d commit 439c452

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+4369
-4304
lines changed

content/developer/howtos/standalone_owl_application.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ layout.
108108
========================================
109109

110110
Now that we have created our assets bundle, we need to create a
111-
:ref:`QWeb view<reference/view_architecture/qweb>` that uses that assets bundle.
111+
:ref:`QWeb view <reference/view_architectures/qweb>` that uses that assets bundle.
112112

113113
.. code-block:: xml
114114

content/developer/reference/backend/data.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ Defines an ``ir.ui.menu`` record with a number of defaults and fallbacks:
236236
``template``
237237
------------
238238

239-
Creates a :ref:`QWeb view <reference/view_architecture/qweb>` requiring only the ``arch``
239+
Creates a :ref:`QWeb view <reference/view_architectures/qweb>` requiring only the ``arch``
240240
section of the view, and allowing a few *optional* attributes:
241241

242242
``id``

content/developer/reference/external_api.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1112,7 +1112,7 @@ Provides information about Odoo models via its various fields.
11121112
list of the model's fields through a :class:`~odoo.fields.One2many` to
11131113
:ref:`reference/webservice/inspection/fields`
11141114
``view_ids``
1115-
:class:`~odoo.fields.One2many` to the :doc:`../reference/user_interface//view_architecture`
1115+
:class:`~odoo.fields.One2many` to the :doc:`../reference/user_interface/view_architectures`
11161116
defined for the model
11171117
``access_ids``
11181118
:class:`~odoo.fields.One2many` relation to the

content/developer/reference/frontend/qweb.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ Request-based
675675

676676
Most Python-side uses of QWeb are in controllers (and during HTTP requests),
677677
in which case templates stored in the database (as
678-
:ref:`views <reference/view_architecture/qweb>`) can be trivially rendered by calling
678+
:ref:`views <reference/view_architectures/qweb>`) can be trivially rendered by calling
679679
:meth:`odoo.http.HttpRequest.render`:
680680

681681
.. code-block:: python

content/developer/reference/user_interface.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ User interface
88
:titlesonly:
99

1010
user_interface/view_records
11-
user_interface/view_architecture
11+
user_interface/view_architectures
1212
user_interface/scss_inheritance
1313
user_interface/icons

content/developer/reference/user_interface/icons.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
:hide-page-toc:
22

3+
.. _reference/user_interface/ui_icons:
4+
35
========
46
UI icons
57
========

0 commit comments

Comments
 (0)