Thursday, 13 April 2017

How to call model objects at xml qweb?

<t t-foreach="request.env['your.model'].search([])" t-as="obj">
    <t t-esc="obj.name"/>
</t>

No comments:

Post a Comment