diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2024-04-30 15:39:57 +0200 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2024-05-03 16:48:58 +0200 |
| commit | 7755e493f4f675d58e2520fda2b7775d4f4b25d5 (patch) | |
| tree | 6a53759efede5e8cd6ecbcf82401be93fcbc0b01 /archaeological_operations/models.py | |
| parent | d789a208e263cd2dc4bd458c699c1bb40c9d1c87 (diff) | |
| download | Ishtar-7755e493f4f675d58e2520fda2b7775d4f4b25d5.tar.bz2 Ishtar-7755e493f4f675d58e2520fda2b7775d4f4b25d5.zip | |
✨ Operation - quick action: add administrative act (refs #5925)
Diffstat (limited to 'archaeological_operations/models.py')
| -rw-r--r-- | archaeological_operations/models.py | 11 |
1 files changed, 11 insertions, 0 deletions
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 += [ ( |
