changeset 65192b3af786 in modules/account_payment_clearing:5.2
details:
https://hg.tryton.org/modules/account_payment_clearing?cmd=changeset;node=65192b3af786
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 fbc42b822541 -r 65192b3af786 payment.py
--- a/payment.py Mon Jul 01 22:13:16 2019 +0200
+++ b/payment.py Thu Jun 27 21:41:55 2019 +0200
@@ -239,6 +239,15 @@
for lines in to_reconcile[party].values():
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"