Odoo Help


"starts with" operator

on 10/4/13, 11:38 AM 1,092 views

What is the precise syntax to replace the filter [['name', 'ilike', 'BA']] with STARTS WITH ?


Daniel Reis

--Daniel Reis--
| 7 8 9
Linda-a-Velha, Portugal
--Daniel Reis--

Author of the "Odoo Development Essentials" book.

Applications Manager at Securitas Portugal

Github: https://github.com/dreispt

Twitter; @reis_pt

Daniel Reis
On 10/4/13, 1:49 PM

Use the =ilike operator instead, which doesn't add the % wildcard around the searched expression. So the for your example you should use:

[('name', '=ilike', 'BA%')]

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

0 follower(s)


Asked: 10/4/13, 11:38 AM
Seen: 1092 times
Last updated: 3/16/15, 8:10 AM