Commit 13917ba7 by Romain Courteaud

project more actions

1 parent b05e465f
......@@ -16,13 +16,13 @@
<key> <string>categories</string> </key>
<value>
<tuple>
<string>action_type/object_fast_input</string>
<string>action_type/object_jio_fast_input</string>
</tuple>
</value>
</item>
<item>
<key> <string>category</string> </key>
<value> <string>object_fast_input</string> </value>
<value> <string>object_jio_fast_input</string> </value>
</item>
<item>
<key> <string>condition</string> </key>
......
......@@ -16,13 +16,13 @@
<key> <string>categories</string> </key>
<value>
<tuple>
<string>action_type/object_fast_input</string>
<string>action_type/object_jio_fast_input</string>
</tuple>
</value>
</item>
<item>
<key> <string>category</string> </key>
<value> <string>object_fast_input</string> </value>
<value> <string>object_jio_fast_input</string> </value>
</item>
<item>
<key> <string>condition</string> </key>
......
......@@ -7,7 +7,7 @@ source_project_type = [ 'Project Line' , 'Project']
task_module = context.getDefaultModule(module_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
task_items = []
......@@ -70,4 +70,4 @@ for item in task_items:
task.setSourceProjectValue(context_obj)
# 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 @@
<value>
<list>
<string>left</string>
<string>right</string>
<string>bottom</string>
<string>hidden</string>
<string>right</string>
</list>
</value>
</item>
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!