fix: using 'Equals' and 'Is' on multiselect throws error

This commit is contained in:
ruthra kumar 2023-05-18 16:48:19 +05:30
parent a96aadc10b
commit 6b2bcd5b07

View file

@ -679,6 +679,7 @@ def get_filters_cond(
if isinstance(f[1], str) and f[1][0] == "!":
flt.append([doctype, f[0], "!=", f[1][1:]])
elif isinstance(f[1], (list, tuple)) and f[1][0].lower() in (
"=",
">",
"<",
">=",
@ -689,6 +690,7 @@ def get_filters_cond(
"in",
"not in",
"between",
"is",
):
flt.append([doctype, f[0], f[1][0], f[1][1]])