Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I don't think there is way to skip the loop, alternatively what u can do is, keep "if condition" to do your operation if particular condition matches, for eg:
to print div if your boolean value is true and skip if false, you can use:
<t t-foreach="<list_of_obj>" t-as="obj">
<t t-if="obj.<bool_field>" ><!-- checking if field is True *-->
<div> Created when field is True</div>
<!-- No div will be created in 'false' case -->
Hope it helps!!
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 8/23/16, 8:10 AM|
|Seen: 239 times|
|Last updated: 8/23/16, 9:59 AM|