|
@@ -352,6 +352,10 @@ def get_filters_cond(doctype, filters, conditions, ignore_permissions=None, with |
|
|
for f in filters: |
|
|
for f in filters: |
|
|
if isinstance(f[1], basestring) and f[1][0] == '!': |
|
|
if isinstance(f[1], basestring) and f[1][0] == '!': |
|
|
flt.append([doctype, f[0], '!=', f[1][1:]]) |
|
|
flt.append([doctype, f[0], '!=', f[1][1:]]) |
|
|
|
|
|
elif isinstance(f[1], list) and \ |
|
|
|
|
|
f[1][0] in (">", "<", ">=", "<=", "like", "not like", "in", "not in", "between"): |
|
|
|
|
|
|
|
|
|
|
|
flt.append([doctype, f[0], f[1][0], f[1][1]]) |
|
|
else: |
|
|
else: |
|
|
flt.append([doctype, f[0], '=', f[1]]) |
|
|
flt.append([doctype, f[0], '=', f[1]]) |
|
|
|
|
|
|
|
|