Commit bf75bc75 authored by Romain Courteaud's avatar Romain Courteaud

erp5_forge: revert & update action

parent 71d0b759
...@@ -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_action</string> <string>action_type/object_jio_action</string>
</tuple> </tuple>
</value> </value>
</item> </item>
<item> <item>
<key> <string>category</string> </key> <key> <string>category</string> </key>
<value> <string>object_action</string> </value> <value> <string>object_jio_action</string> </value>
</item> </item>
<item> <item>
<key> <string>condition</string> </key> <key> <string>condition</string> </key>
......
...@@ -4,8 +4,8 @@ except Exception, error: ...@@ -4,8 +4,8 @@ except Exception, error:
return context.BusinessTemplate_handleException( return context.BusinessTemplate_handleException(
error, script.id, form_id=form_id, keep=keep) error, script.id, form_id=form_id, keep=keep)
request = context.REQUEST return new_bt.Base_redirect('BusinessTemplate_viewInstallationDialog', keep_items={
request.set('portal_status_message', 'Working copy updated successfully.') 'portal_status_message': 'Working copy updated successfully.',
return request.RESPONSE.redirect( 'workflow_action': 'install_action',
'%s/BusinessTemplate_viewInstallationDialog?workflow_action=install_action&form_id=%s' 'form_id': form_id
% (new_bt.absolute_url_path(), form_id)) })
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