Log project changes during approvals

This commit is contained in:
Victor Andersson
2025-11-09 14:05:28 +01:00
parent 70aeca6187
commit 0d68c75fef
5 changed files with 41 additions and 26 deletions

View File

@@ -221,6 +221,12 @@ class ClaimDashboardView(LoginRequiredMixin, PermissionRequiredMixin, ListView):
to_status=claim.status,
note=decision_note,
)
if project_changed:
claim.add_log(
action=ClaimLog.Action.PROJECT_CHANGED,
performed_by=request.user,
note=_("Project updated during decision."),
)
return redirect(request.get_full_path())
def _handle_payment(self, request):