From 08a14e6994d4f38411d258fe5869e5a700dc6832 Mon Sep 17 00:00:00 2001 From: Sergey Datsevich Date: Thu, 22 Oct 2020 00:03:07 +0200 Subject: [PATCH] Re-add workflow decorator to process method This prevents to execute the method multiple times for the same payments. issue9646 review298681004 --- payment.py | 1 + 1 file changed, 1 insertion(+) diff --git a/payment.py b/payment.py index 6b7f4783c0..2bc3cc8435 100644 --- a/payment.py +++ b/payment.py @@ -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')