diff --git a/content/developer/reference/user_interface/view_architectures.rst b/content/developer/reference/user_interface/view_architectures.rst index 83502c9a8..12821876f 100644 --- a/content/developer/reference/user_interface/view_architectures.rst +++ b/content/developer/reference/user_interface/view_architectures.rst @@ -113,8 +113,6 @@ Optional attributes can be added to the root element `form` to customize the vie :type: bool :default: `False` -.. include:: view_architectures/root_attribute_banner_route.rst - .. _reference/view_architectures/form/semantic: Semantic components @@ -1299,8 +1297,6 @@ Optional attributes can be added to the root element `tree` to customize the vie .. include:: view_architectures/root_attribute_sample.rst -.. include:: view_architectures/root_attribute_banner_route.rst - .. _reference/view_architectures/list/components: Components @@ -2509,8 +2505,6 @@ Optional attributes can be added to the root element `kanban` to customize the v .. include:: view_architectures/root_attribute_sample.rst -.. include:: view_architectures/root_attribute_banner_route.rst - .. _reference/view_architectures/kanban/components: Components diff --git a/content/developer/reference/user_interface/view_architectures/root_attribute_banner_route.rst b/content/developer/reference/user_interface/view_architectures/root_attribute_banner_route.rst deleted file mode 100644 index 5e96dca09..000000000 --- a/content/developer/reference/user_interface/view_architectures/root_attribute_banner_route.rst +++ /dev/null @@ -1,44 +0,0 @@ -.. attribute:: banner_route - :noindex: - - The route to fetch HTML from and prepend it to the view. - - If this attribute is set, the URL of the :ref:`controller route ` is - fetched and the returned content is displayed above the view. The JSON response from the - controller must contain an `html` key. - - If the HTML contains a `` tag for a stylesheet, it is removed from its original location - and appended to the `` section. - - To interact with the backend, use `` tags. For more details, refer to the - documentation of the `_onActionClicked` method in `AbstractController - <{GITHUB_PATH}/addons/web/static/src/js/views/abstract_controller.js>`_. - - Only views extending `AbstractView` and `AbstractController`, such as - :ref:`reference/view_architectures/form`, :ref:`reference/view_architectures/kanban`, and - :ref:`reference/view_architectures/list`, can use this attribute. - - .. example:: - .. code-block:: xml - - - - .. code-block:: python - - class MyController(odoo.http.Controller): - @http.route('/module_name/hello', auth='user', type='json') - def hello(self): - return { - 'html': """ -
- -

hello, world

-
""" - } - - :requirement: Optional - :type: path_ - :default: `''` - -.. _`path`: https://en.wikipedia.org/wiki/Path_(computing)