diff --git a/stock_release_channel_cutoff/models/stock_release_channel.py b/stock_release_channel_cutoff/models/stock_release_channel.py index e49a4da56c..1a1bbdd00f 100644 --- a/stock_release_channel_cutoff/models/stock_release_channel.py +++ b/stock_release_channel_cutoff/models/stock_release_channel.py @@ -22,7 +22,7 @@ class StockReleaseChannel(models.Model): def _compute_cutoff_warning(self): now = fields.Datetime.now() for rec in self: - if rec.cutoff_time: + if rec.cutoff_time and rec.process_end_date: hours = float_to_time( rec.cutoff_time, tz=rec.env.user.tz or "UTC",