[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"> <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>

View File

@@ -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'">