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 | etc.
How to do compare ignoring case in search filter? For instance in the below code
ids = self.pool.get('product.product').search(cr, uid, [('name', '=', 'Service'))], context=context)
i am comparing the name of the product with string 'Service'. i want to compare ignoring its case something similar to below
ids = self.pool.get('product.product').search(cr, uid, [('name'.upper(), '=', 'Service'.upper()))], context=context)
I can use 'service'.upper but not 'name'.upper. So how do i compare ignoring its case. Thanks for your time.
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.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 5/22/13, 6:52 AM|
|Seen: 1673 times|
|Last updated: 3/16/15, 8:10 AM|