Do not test active clause of dunning being in a set
The clause may contain unhashable types. Closes #12590
This commit is contained in:
1 parent
ce75be407a
commit
993586497f
1 file changed
+2
-2
@@ -749,9 +749,9 @@ class Dunning(metaclass=PoolMeta):
|
||||
|
||||
@classmethod
|
||||
def search_active(cls, name, clause):
|
||||
if tuple(clause[1:]) in {('=', True), ('!=', False)}:
|
||||
if tuple(clause[1:]) in [('=', True), ('!=', False)]:
|
||||
domain = ('line.payment_amount', '>', 0)
|
||||
elif tuple(clause[1:]) in {('=', False), ('!=', True)}:
|
||||
elif tuple(clause[1:]) in [('=', False), ('!=', True)]:
|
||||
domain = ('line.payment_amount', '<=', 0)
|
||||
else:
|
||||
domain = []
|
||||
|
||||
Reference in new issue
Block a user