[FIX] base: edge case of search on >/< and 0
The double inversion introduced by 6e063188
is done to catch default 0
values.
For example '>= -3' is transformed in "NOT what is found by < -3".
There was an issue with '> 0' and '< 0' since in these instance 0 don't
match and the inversion must not be done.
opw-703929
This commit is contained in:
parent
a1be7ca551
commit
bf38fe4c5f
|
@ -293,13 +293,13 @@ class ir_property(osv.osv):
|
|||
elif value <= 0 and operator == '>=':
|
||||
operator = '<'
|
||||
include_zero = True
|
||||
elif value <= 0 and operator == '>':
|
||||
elif value < 0 and operator == '>':
|
||||
operator = '<='
|
||||
include_zero = True
|
||||
elif value >= 0 and operator == '<=':
|
||||
operator = '>'
|
||||
include_zero = True
|
||||
elif value >= 0 and operator == '<':
|
||||
elif value > 0 and operator == '<':
|
||||
operator = '>='
|
||||
include_zero = True
|
||||
|
||||
|
|
Loading…
Reference in New Issue