Allow directly marking committee returned from await review stage
This commit is contained in:
parent
0dc5923429
commit
1cd09562a9
@ -185,12 +185,12 @@ class BudgetRevision(models.Model):
|
|||||||
return False
|
return False
|
||||||
if not user.groups.filter(name='Secretary').exists() and not user.groups.filter(name='Treasury').exists():
|
if not user.groups.filter(name='Secretary').exists() and not user.groups.filter(name='Treasury').exists():
|
||||||
return False
|
return False
|
||||||
if self.state == BudgetState.ENDORSED.value or self.state == BudgetState.AWAIT_REVIEW.value or self.state == BudgetState.DRAFT.value or self.state == BudgetState.RESUBMIT.value:
|
if self.state != BudgetState.APPROVED.value:
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def can_cmtereturn(self, user):
|
def can_cmtereturn(self, user):
|
||||||
if self.state != BudgetState.ENDORSED.value:
|
if self.state == BudgetState.APPROVED.value:
|
||||||
return False
|
return False
|
||||||
return self.can_approve(user)
|
return self.can_approve(user)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user