Skip to content

Commit

Permalink
Merge branch 'a158515627059482_stopping2invalid'
Browse files Browse the repository at this point in the history
  • Loading branch information
kroman0 committed Jul 22, 2016
2 parents e3515df + c50d884 commit f2e07f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/source/complaints.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Tender Award Complaints
{pending,accepted} -> stopping;
edge[style=bold];
pending -> {accepted,invalid};
stopping -> stopped;
stopping -> {stopped,invalid};
accepted -> {declined,satisfied,stopped};
}

Expand Down
2 changes: 1 addition & 1 deletion openprocurement/tender/limited/views/award_complaint.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def patch(self):
# aboveThresholdReviewers
elif self.request.authenticated_role == 'aboveThresholdReviewers' and self.context.status in ['pending', 'accepted', 'stopping'] and data.get('status', self.context.status) == self.context.status:
apply_patch(self.request, save=False, src=self.context.serialize())
elif self.request.authenticated_role == 'aboveThresholdReviewers' and self.context.status == 'pending' and data.get('status', self.context.status) == 'invalid':
elif self.request.authenticated_role == 'aboveThresholdReviewers' and self.context.status in ['pending', 'stopping'] and data.get('status', self.context.status) == 'invalid':
apply_patch(self.request, save=False, src=self.context.serialize())
self.context.dateDecision = get_now()
self.context.acceptance = False
Expand Down

0 comments on commit f2e07f3

Please sign in to comment.