diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-12-04 01:29:23 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-12-04 01:29:23 +0100 |
commit | 495c777c27cb1e75fd89f63f2af3cf5c9183bff2 (patch) | |
tree | 0f9c261d4d1e64390cfb62014d7973de94914ad2 /archaeological_finds/ishtar_menu.py | |
parent | 78f82a436ce524750e8fd1bc85f83874ba7ef50c (diff) | |
download | Ishtar-495c777c27cb1e75fd89f63f2af3cf5c9183bff2.tar.bz2 Ishtar-495c777c27cb1e75fd89f63f2af3cf5c9183bff2.zip |
Treatments: adapt menu
Diffstat (limited to 'archaeological_finds/ishtar_menu.py')
-rw-r--r-- | archaeological_finds/ishtar_menu.py | 57 |
1 files changed, 32 insertions, 25 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']), + ]), + ] + )), ] |