From 0eb8637ab9239ec693dfd69bcdf2e5b1559884e8 Mon Sep 17 00:00:00 2001 From: Thomas Rehn Date: Wed, 26 Nov 2014 15:11:10 +0100 Subject: [PATCH] don't match res.partner.title on substrings --- magentoerpconnect/partner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/magentoerpconnect/partner.py b/magentoerpconnect/partner.py index 5c9e59357..b1ee129df 100644 --- a/magentoerpconnect/partner.py +++ b/magentoerpconnect/partner.py @@ -512,7 +512,7 @@ def title(self, record): if prefix: title_ids = self.session.search('res.partner.title', [('domain', '=', 'contact'), - ('shortcut', 'ilike', prefix)]) + ('shortcut', '=ilike', prefix)]) if title_ids: title_id = title_ids[0] else: