[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
This commit is contained in:
Aaron Bohy
2024-08-23 08:33:44 +02:00
parent 38fe8febfb
commit c98cb6ddac
2 changed files with 0 additions and 45 deletions

View File

@@ -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 <reference/controllers>` 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 `<link>` tag for a stylesheet, it is removed from its original location
and appended to the `<head>` section.
Use `<a type="action">` tags to interact with the backend, like with :ref:`action buttons
<reference/view_architectures/form/button>`.
.. example::
.. code-block:: xml
<tree banner_route="/module_name/hello" />
.. code-block:: python
class MyController(odoo.http.Controller):
@http.route('/module_name/hello', auth='user', type='json')
def hello(self):
return {
'html': """
<div>
<link href="/module_name/static/src/css/banner.css"
rel="stylesheet">
<h1>hello, world</h1>
</div> """
}
:requirement: Optional
:type: path_
:default: `''`
.. _`path`: https://en.wikipedia.org/wiki/Path_(computing)