Skip to content

Commit

Permalink
[FIX] fieldservice: edge-case NoneType + datetime.timedelta
Browse files Browse the repository at this point in the history
  • Loading branch information
PicchiSeba committed Oct 10, 2023
1 parent 7e6a8c9 commit 595bd7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fieldservice/models/fsm_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ def _calc_scheduled_dates(self, vals):
vals["scheduled_date_start"] = str(date_to_with_delta)

elif (
vals.get("scheduled_duration", False) is not None
vals.get("scheduled_duration", False)
and vals.get("scheduled_date_start", self.scheduled_date_start)
and (
self.scheduled_date_start != vals.get("scheduled_date_start", False)
Expand Down

0 comments on commit 595bd7f

Please sign in to comment.