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)
This commit is contained in:
Priyanka Rani committed 2013-09-28 17:30:25 +05:30
1 parent ab7b240fe8
commit c303dd3ad0
1 file changed
+3 -1
+3 -1
View File
@@ -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))