Odooers论坛

欢迎!

该社区面向专业人士和我们产品和服务的爱好者。
分享和讨论最好的内容和新的营销理念,建立您的专业形象,一起成为更好的营销人员。


0

How to do compare ignoring case in search filter?

形象
odoo
形象
丢弃
1 答案
0
形象
odoo
最佳答案

You can use ilike operator instead of = in search domain. It ignores case.

Try this:

ids = self.pool.get('product.product').search(cr, uid, [('name', 'ilike', 'Service'))], context=context)

Hope this is what you are looking for.

2 注释
形象
丢弃
形象
odoo
-

oh! Thanks sudhir, i actually forgot that option!!

形象
odoo
-

Most welcome.