Skip to content

Commit

Permalink
[FIX] edi_oca: avoid flooding error in the record chatter
Browse files Browse the repository at this point in the history
  • Loading branch information
MiquelRForgeFlow committed Oct 25, 2023
1 parent 80bf234 commit 6d18f55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions edi_oca/models/edi_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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()
Expand Down

0 comments on commit 6d18f55

Please sign in to comment.