From b9e38c3377444186aaf466452b6388c818dea47a Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Thu, 14 Sep 2017 18:05:58 +0200 Subject: [PATCH] [FIX] partner_multi_relation: Fix error on search when leaf is (1, '=', 1) --- partner_multi_relation/__manifest__.py | 2 +- partner_multi_relation/models/res_partner.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/partner_multi_relation/__manifest__.py b/partner_multi_relation/__manifest__.py index 491f31fb6..a8f4c1739 100644 --- a/partner_multi_relation/__manifest__.py +++ b/partner_multi_relation/__manifest__.py @@ -3,7 +3,7 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { "name": "Partner relations", - "version": "10.0.1.0.0", + "version": "10.0.1.0.1", "author": "Therp BV,Camptocamp,Odoo Community Association (OCA)", "complexity": "normal", "category": "Customer Relationship Management", diff --git a/partner_multi_relation/models/res_partner.py b/partner_multi_relation/models/res_partner.py index 3545a299c..1e2a13170 100644 --- a/partner_multi_relation/models/res_partner.py +++ b/partner_multi_relation/models/res_partner.py @@ -143,7 +143,8 @@ class ResPartner(models.Model): # pylint: disable=no-value-for-parameter date_args = [] for arg in args: - if is_leaf(arg) and arg[0].startswith('search_relation'): + if (is_leaf(arg) and isinstance(arg[0], basestring) and + arg[0].startswith('search_relation')): if arg[0] == 'search_relation_date': date_args = [] break