From a89ea48c8fff269f8f38b386fe40c9cc04eff3c9 Mon Sep 17 00:00:00 2001 From: Aaron Bohy Date: Fri, 23 Aug 2024 08:33:44 +0200 Subject: [PATCH] [REM] reference/user_interface: remove banner_route This commit removes the documentation about the banner_route view attribute, which has been dropped in odoo/odoo#177244. Task~4126004 closes odoo/documentation#10841 Related: odoo/enterprise#68621 Related: odoo/upgrade#6404 Signed-off-by: Aaron Bohy (aab) --- .../user_interface/view_architectures.rst | 6 --- .../root_attribute_banner_route.rst | 39 ------------------- 2 files changed, 45 deletions(-) delete mode 100644 content/developer/reference/user_interface/view_architectures/root_attribute_banner_route.rst 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)