diff --git a/edi_oca/models/edi_backend.py b/edi_oca/models/edi_backend.py index 00c2fe75ba1..775d33be635 100644 --- a/edi_oca/models/edi_backend.py +++ b/edi_oca/models/edi_backend.py @@ -453,7 +453,7 @@ def exchange_process(self, exchange_record): check = self._exchange_process_check(exchange_record) if not check: return False - state = exchange_record.edi_exchange_state + old_state = state = exchange_record.edi_exchange_state error = False message = None try: @@ -478,7 +478,7 @@ def exchange_process(self, exchange_record): "exchanged_on": fields.Datetime.now(), } ) - if state == "input_processed_error": + if state == "input_processed_error" and old_state != "input_processed_error": exchange_record._notify_error("process_ko") elif state == "input_processed": exchange_record._notify_done()