Commit 13917ba7 authored by Romain Courteaud's avatar Romain Courteaud

project more actions

parent b05e465f
...@@ -16,13 +16,13 @@ ...@@ -16,13 +16,13 @@
<key> <string>categories</string> </key> <key> <string>categories</string> </key>
<value> <value>
<tuple> <tuple>
<string>action_type/object_fast_input</string> <string>action_type/object_jio_fast_input</string>
</tuple> </tuple>
</value> </value>
</item> </item>
<item> <item>
<key> <string>category</string> </key> <key> <string>category</string> </key>
<value> <string>object_fast_input</string> </value> <value> <string>object_jio_fast_input</string> </value>
</item> </item>
<item> <item>
<key> <string>condition</string> </key> <key> <string>condition</string> </key>
......
...@@ -16,13 +16,13 @@ ...@@ -16,13 +16,13 @@
<key> <string>categories</string> </key> <key> <string>categories</string> </key>
<value> <value>
<tuple> <tuple>
<string>action_type/object_fast_input</string> <string>action_type/object_jio_fast_input</string>
</tuple> </tuple>
</value> </value>
</item> </item>
<item> <item>
<key> <string>category</string> </key> <key> <string>category</string> </key>
<value> <string>object_fast_input</string> </value> <value> <string>object_jio_fast_input</string> </value>
</item> </item>
<item> <item>
<key> <string>condition</string> </key> <key> <string>condition</string> </key>
......
...@@ -7,7 +7,7 @@ source_project_type = [ 'Project Line' , 'Project'] ...@@ -7,7 +7,7 @@ source_project_type = [ 'Project Line' , 'Project']
task_module = context.getDefaultModule(module_type) task_module = context.getDefaultModule(module_type)
if context_obj.getPortalType() not in source_project_type: if context_obj.getPortalType() not in source_project_type:
return context.REQUEST.RESPONSE.redirect(context.absolute_url() + '?portal_status_message=Error:+bad+context.') return context.Base_redirect('view', keep_items={'portal_status_message': 'Error: bar context.'})
# this list contain all task items # this list contain all task items
task_items = [] task_items = []
...@@ -70,4 +70,4 @@ for item in task_items: ...@@ -70,4 +70,4 @@ for item in task_items:
task.setSourceProjectValue(context_obj) task.setSourceProjectValue(context_obj)
# return to the project # return to the project
return context.REQUEST.RESPONSE.redirect(context.absolute_url() + '?portal_status_message=Tasks+added+at+Task+Module.') return context.Base_redirect('view', keep_items={'portal_status_message': 'Tasks added at Task Module.'})
...@@ -50,9 +50,9 @@ ...@@ -50,9 +50,9 @@
<value> <value>
<list> <list>
<string>left</string> <string>left</string>
<string>right</string>
<string>bottom</string> <string>bottom</string>
<string>hidden</string> <string>hidden</string>
<string>right</string>
</list> </list>
</value> </value>
</item> </item>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment