Skip to content

Commit

Permalink
[UPD] compute forecast_date_end even if priority is False - equate Fa…
Browse files Browse the repository at this point in the history
…lse to Normal priority
  • Loading branch information
ntsirintanis authored Mar 12, 2024
1 parent bd01deb commit 2b37667
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions project_forecast_line_priority/models/project_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ def _get_forecast_date_planned(self, priority=None):
if self.date_deadline:
return False
priority = priority or self.priority
if not priority:
# This may happen when a portal user
# is creating a task on portal
priority = "0"
selection = self.company_id["forecast_line_priority_%s_selection" % priority]
if selection == "none":
return False
Expand Down

0 comments on commit 2b37667

Please sign in to comment.