mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
As the template is not used by JS we can pass full objects to it. This way we can use any recordset information directly in the template without having to override the method.
24 lines
786 B
XML
24 lines
786 B
XML
<odoo>
|
|
<template id="packagings">
|
|
<ul class="o_vlift_packaging list-unstyled">
|
|
<t t-foreach="product.packaging_ids" t-as="packaging">
|
|
<li>
|
|
<span>1</span>
|
|
<span
|
|
class="packaging_name"
|
|
itemprop="name"
|
|
t-esc="packaging.name"
|
|
/>
|
|
<span>: </span>
|
|
<span class="packaging_qty" itemprop="qty" t-esc="packaging.qty" />
|
|
<span
|
|
class="packaging_unit"
|
|
itemprop="unit"
|
|
t-esc="product.uom_id.name"
|
|
/>
|
|
</li>
|
|
</t>
|
|
</ul>
|
|
</template>
|
|
</odoo>
|