Skip to content

Commit

Permalink
[16.0][IMP] stock_release_channel_cutoff: Release channel cutoff warn…
Browse files Browse the repository at this point in the history
…ing - bool error
  • Loading branch information
thaolt99 committed Nov 1, 2023
1 parent ead534f commit ac741f9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit ac741f9

Please sign in to comment.