Re-add workflow decorator to process method

This prevents to execute the method multiple times for the
same payments.

issue9646
review298681004
This commit is contained in:
Sergey Datsevich committed 2020-10-22 00:03:07 +02:00
1 parent d2f7c01838
commit 08a14e6994
1 file changed
+1
+1
View File
@@ -459,6 +459,7 @@ class Payment(Workflow, ModelSQL, ModelView):
pass
@classmethod
@Workflow.transition('processing')
def process(cls, payments, group):
pool = Pool()
Group = pool.get('account.payment.group')