Search code examples
odooodoo-10qweb

Odoo 10 - Qweb test if record is in a record set


I have a=sale.order.line(5,) and b=sale.order.line(4,3,5,6,)

How can I test in QWeb if a is in b?


Solution

  • <t t-if="a in b">
        <!-- do something -->
    </t>