Odoo Help


Q-web vs conditions

Dr Obx
on 4/7/16, 7:23 AM 250 views


Is it possible to use in t-if="'field ilike value" ?


Use the string javascripts functions like http://www.w3schools.com/jsref/jsref_obj_string.asp

Could you be a little bit more precise please ? I've tried t-if field_name len(field_name) > 6 and it apparently works, so i tried also t-if="o.field_name startsWith('ebay')" and got error.

Dr Obx
on 4/7/16, 8:57 AM
Dr Obx
On 4/7/16, 8:41 AM

So I did :)

I did it that way: t-if field_name len(field_name) > 6 and it seems to work. Of course it's not the perfect solution but .....

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!

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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 4/7/16, 7:23 AM
Seen: 250 times
Last updated: 4/7/16, 8:41 AM