changeset 264dfa4ca8c1 in modules/account_payment_clearing:4.8
details:
https://hg.tryton.org/modules/account_payment_clearing?cmd=changeset;node=264dfa4ca8c1
description:
Remove clearing move on copy
issue8412
review271571002
(grafted from dd858dac381ed834dc0c5ee9b149cd07b8ad9394)
diffstat:
payment.py | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diffs (19 lines):
diff -r f49204c3d437 -r 264dfa4ca8c1 payment.py
--- a/payment.py Tue Feb 19 22:44:05 2019 +0100
+++ b/payment.py Thu Jun 27 21:41:55 2019 +0200
@@ -240,6 +240,15 @@
for lines in to_reconcile[party].itervalues():
Line.reconcile(lines)
+ @classmethod
+ def copy(cls, payments, default=None):
+ if default is None:
+ default = {}
+ else:
+ default = default.copy()
+ default.setdefault('clearing_move')
+ return super(Payment, cls).copy(payments, default=default)
+
class Succeed(Wizard):
"Succeed Payment"