Skip to content
Snippets Groups Projects
Commit ab4588cf authored by Dominik Zians's avatar Dominik Zians
Browse files

[FIX] snailmail: change error code when timeout


When the snailmail API-call timed out, the SnailmailLetter.state and SnailmailLetter.error_code were not changed, which resulted in an infinite loop of retries  via the "Snailmail: process letters queue" cron job.
This commit changes this behavior: On a timeout the SnailmailLetter.error_code is changed such that no retry happens. Following stable policy, no timeout error is added, but 'unknown error' will be used. Preventing retries on timeout is mandatory as timed-out request are indeed processed by IAP and customer credited.

closes odoo/odoo#84243

X-original-commit: b3c46e80
Signed-off-by: default avatarFlorian Daloze (fda) <fda@odoo.com>
Signed-off-by: default avatarZians Dominik (dozi) <dozi@odoo.com>
parent 2ab532dd
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment