Skip to content

Commit

Permalink
caseState change in task_nakijken_aanschrijving
Browse files Browse the repository at this point in the history
  • Loading branch information
remyvdwereld committed Dec 7, 2023
1 parent 6f9c3f7 commit bc5fec7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions app/apps/workflow/user_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,17 @@ class task_nakijken_aanschrijving(user_task):
_task_name = "task_check_summons"
due_date = relativedelta(weeks=1)

# It's possible to bypass task_opstellen_concept_aanschrijving for theme Leegstand.
# Create the CaseState HANDHAVING if it doesn't exist. Otherwise, the status TOEZICHT is retained.
def instance_created(self):
from apps.cases.models import CaseState

CaseState.objects.get_or_create(
case=self.case_user_task.case,
status=CaseState.CaseStateChoice.HANDHAVING,
)
return


class task_afzien_concept_aanschrijving(user_task):
"""Afzien concept aanschrijving"""
Expand Down

0 comments on commit bc5fec7

Please sign in to comment.