Add issue12590.diff [account_payment] Do not test active clause of dunning being in a set
This commit is contained in:
parent
f85c3b65f5
commit
cd4701d2b7
|
@ -0,0 +1,16 @@
|
||||||
|
diff --git a/tryton/modules/account_payment/account.py b/tryton/modules/account_payment/account.py
|
||||||
|
index 112c8e1f2c..3a5b860aec 100644
|
||||||
|
--- a/tryton/modules/account_payment/account.py
|
||||||
|
+++ b/tryton/modules/account_payment/account.py
|
||||||
|
@@ -699,9 +699,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 = []
|
2
series
2
series
|
@ -117,3 +117,5 @@ issue7672.diff # [stock] Always fill product and template of cost price revision
|
||||||
sale_purchase_relate_lines.diff # [sale] [purchase] Add relates to sale and purchase lines from party and product
|
sale_purchase_relate_lines.diff # [sale] [purchase] Add relates to sale and purchase lines from party and product
|
||||||
|
|
||||||
issue12570.diff # [account] Do not compute account party for general ledger line without party
|
issue12570.diff # [account] Do not compute account party for general ledger line without party
|
||||||
|
|
||||||
|
issue12590.diff # [account_payment] Do not test active clause of dunning being in a set
|
||||||
|
|
Loading…
Reference in New Issue