[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) <aab@odoo.com>
This commit is contained in:
parent
38fe8febfb
commit
a89ea48c8f
@ -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
|
||||
|
@ -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)
|
Loading…
Reference in New Issue
Block a user