diff --git a/content/developer/reference/user_interface/view_architectures.rst b/content/developer/reference/user_interface/view_architectures.rst index 2853a2c02..ac7090ec3 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 @@ -1312,8 +1310,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 @@ -2522,8 +2518,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 9c7e3a568..000000000 --- a/content/developer/reference/user_interface/view_architectures/root_attribute_banner_route.rst +++ /dev/null @@ -1,39 +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. - - Use `` tags to interact with the backend, like with :ref:`action buttons - `. - - .. 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)