diff options
author | Étienne Loks <etienne.loks@peacefrogs.net> | 2011-06-29 13:27:09 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2011-06-29 13:27:09 +0200 |
commit | 529828b89b27da8f76e96fdede46bd16fec4468d (patch) | |
tree | 7c483f9b207ccfa5b5391731f5ff5f03693fb42a /ishtar/ishtar_base/menus.py | |
parent | 05c6d94c9547377c9979e9d860c6618ee898ef6e (diff) | |
download | Ishtar-529828b89b27da8f76e96fdede46bd16fec4468d.tar.bz2 Ishtar-529828b89b27da8f76e96fdede46bd16fec4468d.zip |
Sources modification and deletion for Operations (refs #497)
Diffstat (limited to 'ishtar/ishtar_base/menus.py')
-rw-r--r-- | ishtar/ishtar_base/menus.py | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/ishtar/ishtar_base/menus.py b/ishtar/ishtar_base/menus.py index 3f8a7dd59..f229e32f1 100644 --- a/ishtar/ishtar_base/menus.py +++ b/ishtar/ishtar_base/menus.py @@ -210,13 +210,30 @@ class Menu: 'add_own_treatment']), ]), SectionItem('source_management', _(u"Documentation"), - childs=[SectionItem('admin_add_sources', _(u"Add"), + childs=[ + SectionItem('admin_add_sources', _(u"Add"), childs=[ MenuItem('operation_source_add', _(u"Related to an operation"), model=models.OperationSource, access_controls=['change_operation', 'change_own_operation']), ]), + SectionItem('admin_mod_sources', _(u"Modify"), + childs=[ + MenuItem('operation_source_modification', + _(u"Related to an operation"), + model=models.OperationSource, + access_controls=['change_operation', + 'change_own_operation']), + ]), + SectionItem('admin_del_sources', _(u"Deletion"), + childs=[ + MenuItem('operation_source_deletion', + _(u"Related to an operation"), + model=models.OperationSource, + access_controls=['change_operation', + 'change_own_operation']), + ]), ]), SectionItem('warehouse', _(u"Warehouse"), childs=[ |