mirror of
https://github.com/odoo/documentation.git
synced 2025-12-12 07:29:27 +07:00
[FIX] tutorials,howtos: change all instances of kanban-box to kanban-card
closes odoo/documentation#15050 Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
This commit is contained in:
@@ -57,7 +57,7 @@ can be done in a few steps:
|
|||||||
|
|
||||||
<kanban js_class="custom_kanban">
|
<kanban js_class="custom_kanban">
|
||||||
<templates>
|
<templates>
|
||||||
<t t-name="kanban-box">
|
<t t-name="kanban-card">
|
||||||
<!--Your comment-->
|
<!--Your comment-->
|
||||||
</t>
|
</t>
|
||||||
</templates>
|
</templates>
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ looks like:
|
|||||||
|
|
||||||
<kanban>
|
<kanban>
|
||||||
<templates>
|
<templates>
|
||||||
<t t-name="kanban-box">
|
<t t-name="kanban-card">
|
||||||
<div>
|
<div>
|
||||||
<field name="name"/>
|
<field name="name"/>
|
||||||
</div>
|
</div>
|
||||||
@@ -55,9 +55,9 @@ looks like:
|
|||||||
Let's break down this example:
|
Let's break down this example:
|
||||||
|
|
||||||
- ``<templates>``: defines a list of :ref:`reference/qweb` templates. Kanban views *must* define at
|
- ``<templates>``: defines a list of :ref:`reference/qweb` templates. Kanban views *must* define at
|
||||||
least one root template ``kanban-box``, which will be rendered once for each record.
|
least one root template ``kanban-card``, which will be rendered once for each record.
|
||||||
- ``<t t-name="kanban-box">``: ``<t>`` is a placeholder element for QWeb directives. In this case,
|
- ``<t t-name="kanban-card">``: ``<t>`` is a placeholder element for QWeb directives. In this case,
|
||||||
it is used to set the ``name`` of the template to ``kanban-box``
|
it is used to set the ``name`` of the template to ``kanban-card``
|
||||||
- ``<field name="name"/>``: this will add the ``name`` field to the view.
|
- ``<field name="name"/>``: this will add the ``name`` field to the view.
|
||||||
|
|
||||||
.. exercise:: Make a minimal kanban view.
|
.. exercise:: Make a minimal kanban view.
|
||||||
@@ -76,7 +76,7 @@ conditionally, we can use the ``t-if`` directive (see :ref:`reference/qweb/condi
|
|||||||
<kanban>
|
<kanban>
|
||||||
<field name="state"/>
|
<field name="state"/>
|
||||||
<templates>
|
<templates>
|
||||||
<t t-name="kanban-box">
|
<t t-name="kanban-card">
|
||||||
<div>
|
<div>
|
||||||
<field name="name"/>
|
<field name="name"/>
|
||||||
<div t-if="record.state.raw_value == 'new'">
|
<div t-if="record.state.raw_value == 'new'">
|
||||||
|
|||||||
Reference in New Issue
Block a user