changeset 029588b57a9a in modules/account_payment_clearing:default
details:
https://hg.tryton.org/modules/account_payment_clearing?cmd=changeset;node=029588b57a9a
description:
Add model, record and records attribute on Wizard
issue9421
review309861012
diffstat:
payment.py | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
diffs (17 lines):
diff -r 5b998a5acb4f -r 029588b57a9a payment.py
--- a/payment.py Mon May 04 12:10:30 2020 +0200
+++ b/payment.py Tue Jul 07 23:56:09 2020 +0200
@@ -263,12 +263,8 @@
succeed = StateTransition()
def transition_succeed(self):
- pool = Pool()
- Payment = pool.get('account.payment')
- payments = Payment.browse(Transaction().context['active_ids'])
-
with Transaction().set_context(clearing_date=self.start.date):
- Payment.succeed(payments)
+ self.model.succeed(self.records)
return 'end'