From 6bf0bc1641c9abc24dd4f956b487216e0ee93fe7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 25 Feb 2026 18:54:03 +0100 Subject: [PATCH] Set state to processing for Peppol edocument before actually process them The actual process method checks that the state of the document is still processing so it must be written before and not rely on the transition to write it. Closes #14626 --- modules/edocument_peppol/edocument.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/edocument_peppol/edocument.py b/modules/edocument_peppol/edocument.py index e35b9ac226..a0c8c93f4d 100644 --- a/modules/edocument_peppol/edocument.py +++ b/modules/edocument_peppol/edocument.py @@ -207,6 +207,8 @@ class Peppol(Workflow, ModelSQL, ModelView): @Workflow.transition('processing') def process(cls, documents): cls.lock(documents) + # write state before calling _process + cls.write(documents, {'state': 'processing'}) for document in documents: if document.direction == 'out': cls.__queue__._process(document)