Hi,
Can anyone please tell me how i can jump on next line on the basis of field value is '0' & print the values after jumping on next line in qweb.
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
This question has been flagged
1
Reply
5807
Views
Hi,
You can use a if condition inside the foreach and execute the condition based on if condition. In the if condition you can check whether the field value is 0 or not.
See this sample,
<t t-foreach="a.value_ids" t-as="v">
<t t-if="v.id in attrib_set">
<t t-set="attr_section_open" t-value="True"/>
</t>
</t>
Thanks
Okay Thank you so much.
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up