diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Workflow_statusModify.xml b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Workflow_statusModify.xml index ef5c975f20c38814df37c86ad0938f6badacb85f..10574031769ee13b3984e787034852be41f1f963 100644 --- a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Workflow_statusModify.xml +++ b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Workflow_statusModify.xml @@ -125,8 +125,12 @@ except ValidationFailed, error_message:\n \n portal_status_message = request.get(\'portal_status_message\', translateString(\'Status changed.\'))\n \n +# Allow to redirect to another document\n +redirect_document_path = request.get(\'redirect_document_path\', context.getRelativeUrl())\n +redirect_document = context.restrictedTraverse(redirect_document_path)\n +\n return context.ERP5Site_redirect(\n - \'%s/%s\' % (context.absolute_url(), form_id),\n + \'%s/%s\' % (redirect_document.absolute_url(), form_id),\n keep_items={\'portal_status_message\': portal_status_message})\n </string> </value> </item> @@ -203,6 +207,8 @@ return context.ERP5Site_redirect(\n <string>same_type</string> <string>str</string> <string>portal_status_message</string> + <string>redirect_document_path</string> + <string>redirect_document</string> </tuple> </value> </item> diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision b/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision index 8ec9b982c486d57276f6301c5d03886c6cac9c0b..823aeb4b44b7f09e1692e625ff87d75f224be3b5 100644 --- a/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision +++ b/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision @@ -1 +1 @@ -622 \ No newline at end of file +624 \ No newline at end of file