Welcome!
This community is for professionals and enthusiasts of our products and services.
Share and discuss the best content and new marketing ideas, build your professional profile and become a better marketer together.
if else QWeb t-if
Nota Para quem procura um problema semelhante, t-else
foi adicionado apenas no Odoo 10. Assim, para Odoo <> 10, a negação deve ser usada.
Para Odoo <> 10,
<t t-if="condition">
</t>
<t t-if="not condition">
</t>
Para Odoo = 10,
<t t-if="condition">
</t>
<t t-else="">
</t>
Your Answer
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
Keep Informed
About This Community
Moderation Tools
Question tools
Stats
Asked: 9/23/21, 3:22 PM |
Seen: 679 times |
Last updated: 9/23/21, 3:23 PM |