summaryrefslogtreecommitdiff
path: root/ishtar/ishtar_base/menus.py
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar/ishtar_base/menus.py')
-rw-r--r--ishtar/ishtar_base/menus.py33
1 files changed, 32 insertions, 1 deletions
diff --git a/ishtar/ishtar_base/menus.py b/ishtar/ishtar_base/menus.py
index f229e32f1..3d19e5b88 100644
--- a/ishtar/ishtar_base/menus.py
+++ b/ishtar/ishtar_base/menus.py
@@ -213,10 +213,21 @@ class Menu:
childs=[
SectionItem('admin_add_sources', _(u"Add"),
childs=[
- MenuItem('operation_source_add', _(u"Related to an operation"),
+ MenuItem('operation_source_creation',
+ _(u"Related to an operation"),
model=models.OperationSource,
access_controls=['change_operation',
'change_own_operation']),
+ MenuItem('record_source_creation',
+ _(u"Related to a context record"),
+ model=models.ContextRecordSource,
+ access_controls=['change_contextrecord',
+ 'change_own_contextrecord']),
+ MenuItem('item_source_creation',
+ _(u"Related to an archaelogical item"),
+ model=models.ItemSource,
+ access_controls=['change_item',
+ 'change_own_item']),
]),
SectionItem('admin_mod_sources', _(u"Modify"),
childs=[
@@ -225,6 +236,16 @@ class Menu:
model=models.OperationSource,
access_controls=['change_operation',
'change_own_operation']),
+ MenuItem('record_source_modification',
+ _(u"Related to a context record"),
+ model=models.ContextRecordSource,
+ access_controls=['change_contextrecord',
+ 'change_own_contextrecord']),
+ MenuItem('item_source_modification',
+ _(u"Related to an archaelogical item"),
+ model=models.ItemSource,
+ access_controls=['change_item',
+ 'change_own_item']),
]),
SectionItem('admin_del_sources', _(u"Deletion"),
childs=[
@@ -233,6 +254,16 @@ class Menu:
model=models.OperationSource,
access_controls=['change_operation',
'change_own_operation']),
+ MenuItem('record_source_deletion',
+ _(u"Related to a context record"),
+ model=models.ContextRecordSource,
+ access_controls=['change_contextrecord',
+ 'change_own_contextrecord']),
+ MenuItem('item_source_deletion',
+ _(u"Related to an archaelogical item"),
+ model=models.ItemSource,
+ access_controls=['change_item',
+ 'change_own_item']),
]),
]),
SectionItem('warehouse', _(u"Warehouse"),