From 7755e493f4f675d58e2520fda2b7775d4f4b25d5 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 30 Apr 2024 15:39:57 +0200 Subject: ✨ Operation - quick action: add administrative act (refs #5925) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- archaeological_operations/models.py | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'archaeological_operations/models.py') diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py index ea4b6c244..eeee9e8aa 100644 --- a/archaeological_operations/models.py +++ b/archaeological_operations/models.py @@ -1969,6 +1969,17 @@ class Operation( True, ), ] + end + if profile.files and self.can_do(request, "add_administrativeact"): + actions += [ + ( + reverse("operation-add-adminact", args=[self.pk]), + _("Add associated administrative act"), + "fa fa-plus", + _("admin. act"), + "", + False, + ), + ] if can_edit_operation: actions += [ ( -- cgit v1.2.3