[FW][FIX] developer/tutorials: wrong kanban view example

Pretty sure the previous wasnt the intended result as it would show the "this is new" in a new kanban card. This just groups it with the property it belongs to.

closes odoo/documentation#5907

Forward-port-of: odoo/documentation#5899
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
This commit is contained in:
dispread 2023-09-25 13:09:11 +00:00 committed by GitHub
parent 13feb8018d
commit 1a26e5ae52

View File

@ -83,10 +83,10 @@ conditionally, we can use the ``t-if`` directive (see :ref:`reference/qweb/condi
<t t-name="kanban-box"> <t t-name="kanban-box">
<div class="oe_kanban_global_click"> <div class="oe_kanban_global_click">
<field name="name"/> <field name="name"/>
</div>
<div t-if="record.state.raw_value == 'new'"> <div t-if="record.state.raw_value == 'new'">
This is new! This is new!
</div> </div>
</div>
</t> </t>
</templates> </templates>
</kanban> </kanban>