[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:
Mathilde Pascal
2025-10-28 11:09:31 +01:00
parent 4263418859
commit 56a1777d96
2 changed files with 6 additions and 6 deletions

View File

@@ -57,7 +57,7 @@ can be done in a few steps:
<kanban js_class="custom_kanban">
<templates>
<t t-name="kanban-box">
<t t-name="kanban-card">
<!--Your comment-->
</t>
</templates>

View File

@@ -44,7 +44,7 @@ looks like:
<kanban>
<templates>
<t t-name="kanban-box">
<t t-name="kanban-card">
<div>
<field name="name"/>
</div>
@@ -55,9 +55,9 @@ looks like:
Let's break down this example:
- ``<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.
- ``<t t-name="kanban-box">``: ``<t>`` is a placeholder element for QWeb directives. In this case,
it is used to set the ``name`` of the template to ``kanban-box``
least one root template ``kanban-card``, which will be rendered once for each record.
- ``<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-card``
- ``<field name="name"/>``: this will add the ``name`` field to the 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>
<field name="state"/>
<templates>
<t t-name="kanban-box">
<t t-name="kanban-card">
<div>
<field name="name"/>
<div t-if="record.state.raw_value == 'new'">