From aa33308641dc9de23f3603eb951d99ac5dfb45f0 Mon Sep 17 00:00:00 2001 From: Emanuel Cino Date: Tue, 21 Jun 2022 14:10:13 +0200 Subject: [PATCH] CP-76 FIX mobile requests bugs - Increase delay between calls to avoid transaction issues - Remove "S" state in children which is useless and brought the bug - Other small improvements --- sms_939/models/sms_child_request.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/sms_939/models/sms_child_request.py b/sms_939/models/sms_child_request.py index 54b0151f6..fbe5cab20 100644 --- a/sms_939/models/sms_child_request.py +++ b/sms_939/models/sms_child_request.py @@ -65,8 +65,6 @@ def _take_child_from_website(self): self.write({"child_id": child.id, "state": "child_reserved"}) child.hold_id.sms_request_id = self.id child.remove_from_wordpress() - if self.type == "sms": - child.write({"state": "S"}) child.hold_id.with_delay().update_expiration_date( fields.Datetime.to_string(datetime.now() + relativedelta(days=1))