summaryrefslogtreecommitdiff
path: root/archaeological_operations/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2025-06-13 17:36:56 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2025-06-13 17:53:21 +0200
commit60603ad6431d2bdcb0786a2e51d13276b5a16677 (patch)
tree8be0e26058cd784bf19612b3fe2a9945a985f98a /archaeological_operations/models.py
parente8b6b433704e1eaae34f5100f3590a7950ddce5e (diff)
downloadIshtar-60603ad6431d2bdcb0786a2e51d13276b5a16677.tar.bz2
Ishtar-60603ad6431d2bdcb0786a2e51d13276b5a16677.zip
🐛 archaeological sites: remove "add operation" shortcuts (refs #6329)
Diffstat (limited to 'archaeological_operations/models.py')
-rw-r--r--archaeological_operations/models.py35
1 files changed, 0 insertions, 35 deletions
diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py
index d6a0d45e3..72838e815 100644
--- a/archaeological_operations/models.py
+++ b/archaeological_operations/models.py
@@ -612,14 +612,6 @@ class ArchaeologicalSite(
QUICK_ACTIONS = [
QA_EDIT,
QuickAction(
- url="site-add-operation",
- icon_class="fa fa-plus",
- text=_("Create associated operation"),
- target="many",
- rights=["archaeological_operations.add_operation"],
- is_popup=False
- ),
- QuickAction(
url="site-qa-duplicate",
icon_class="fa fa-clone",
text=_("Duplicate"),
@@ -826,33 +818,6 @@ class ArchaeologicalSite(
),
]
- can_create_operation = self.can_do(
- request, "archaeological_operations.change_operation"
- )
- if can_create_operation and not self.operations.count():
- actions.append(
- (
- reverse("site-add-operation", args=[self.pk]),
- _("Create an operation associated to this site"),
- "fa fa-plus",
- _("ope."),
- "",
- False
- )
- )
-
- if can_create_operation and self.operations.count():
- actions.append(
- (
- reverse("site-add-top-operation", args=[self.pk]),
- _("Create a cluster operation for site associated to many operations"),
- "fa fa-plus",
- _("top ope."),
- "",
- False
- )
- )
-
if can_edit_site:
actions += [
(