From c303dd3ad0f813e5ba0791ccb0da4be37a4a4e48 Mon Sep 17 00:00:00 2001 From: Priyanka Rani Date: Sat, 28 Sep 2013 17:30:25 +0530 Subject: [PATCH] Fix Product convert domain for non relate This Patch has fixed search domain conversion which converts domain like [('template.category', '=', 1)] to [('template', '=', 1)]. issue3118 review1056003 (transplanted from ef13861cf9508a8eaed14f977e5dc412a98c5db4) --- product.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/product.py b/product.py index b99a117ea2..dcb7541cf3 100644 --- a/product.py +++ b/product.py @@ -209,7 +209,9 @@ class Product(ModelSQL, ModelView): field = arg[0].split('.', 1)[0] if not getattr(cls, field, None): field = 'template.' + arg[0] - result.append((field,) + tuple(arg[1:])) + result.append((field,) + tuple(arg[1:])) + else: + result.append(arg) elif isinstance(arg, list): # sub-domain result.append(convert_domain(arg))