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:
1 parent
d2f7c01838
commit
08a14e6994
1 file changed
+1
@@ -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')
|
||||
|
||||
Reference in new issue
Block a user