summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--archaeological_finds/ishtar_menu.py57
-rw-r--r--archaeological_warehouse/ishtar_menu.py2
2 files changed, 33 insertions, 26 deletions
diff --git a/archaeological_finds/ishtar_menu.py b/archaeological_finds/ishtar_menu.py
index 1ab0cb575..6f2d53f1f 100644
--- a/archaeological_finds/ishtar_menu.py
+++ b/archaeological_finds/ishtar_menu.py
@@ -100,29 +100,36 @@ MENU_SECTIONS = [
# model=models.Treatment,
# access_controls=['change_find',
# 'change_own_find']),
- SectionItem(
- 'find_treatments', _(u"Treatments"),
- childs=[
- MenuItem('treatment_search',
- _(u"Search"),
- model=models.Treatment,
- access_controls=['view_find',
- 'view_own_find']),
- MenuItem('treatment_creation',
- _(u"Creation"),
- model=models.Treatment,
- access_controls=['change_find',
- 'change_own_find']),
- MenuItem('treatment_modification',
- _(u"Modification"),
- model=models.Treatment,
- access_controls=['change_find',
- 'change_own_find']),
- MenuItem('treatment_deletion',
- _(u"Deletion"),
- model=models.Treatment,
- access_controls=['change_find',
- 'change_own_find']),
- ]),
- ]))
+ ])),
+ (60,
+ SectionItem(
+ 'treatment_management', _(u"Treatment"),
+ profile_restriction='warehouse',
+ childs=[
+ SectionItem(
+ 'find_treatments', _(u"Simple treatments"),
+ childs=[
+ MenuItem('treatment_search',
+ _(u"Search"),
+ model=models.Treatment,
+ access_controls=['view_find',
+ 'view_own_find']),
+ MenuItem('treatment_creation',
+ _(u"Creation"),
+ model=models.Treatment,
+ access_controls=['change_find',
+ 'change_own_find']),
+ MenuItem('treatment_modification',
+ _(u"Modification"),
+ model=models.Treatment,
+ access_controls=['change_find',
+ 'change_own_find']),
+ MenuItem('treatment_deletion',
+ _(u"Deletion"),
+ model=models.Treatment,
+ access_controls=['change_find',
+ 'change_own_find']),
+ ]),
+ ]
+ )),
]
diff --git a/archaeological_warehouse/ishtar_menu.py b/archaeological_warehouse/ishtar_menu.py
index f9f0daf33..1844b0018 100644
--- a/archaeological_warehouse/ishtar_menu.py
+++ b/archaeological_warehouse/ishtar_menu.py
@@ -27,7 +27,7 @@ from archaeological_finds.models import Treatment
MENU_SECTIONS = [
- (60, SectionItem('find_management', _(u"Find"),
+ (60, SectionItem('treatment_management', _(u"Treatment"),
profile_restriction='warehouse',
childs=[
MenuItem('warehouse_packaging', _(u"Packaging"),