diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Base_doExchange.xml b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Base_doExchange.xml new file mode 100644 index 0000000000000000000000000000000000000000..1dbaad7c76494ae027d27b3417173c120f73cf9d --- /dev/null +++ b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Base_doExchange.xml @@ -0,0 +1,88 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="PythonScript" module="Products.PythonScripts.PythonScript"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>Script_magic</string> </key> + <value> <int>3</int> </value> + </item> + <item> + <key> <string>_bind_names</string> </key> + <value> + <object> + <klass> + <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>_asgns</string> </key> + <value> + <dictionary> + <item> + <key> <string>name_container</string> </key> + <value> <string>container</string> </value> + </item> + <item> + <key> <string>name_context</string> </key> + <value> <string>context</string> </value> + </item> + <item> + <key> <string>name_m_self</string> </key> + <value> <string>script</string> </value> + </item> + <item> + <key> <string>name_subpath</string> </key> + <value> <string>traverse_subpath</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_body</string> </key> + <value> <string>request = container.REQUEST\n +kw.update(request.form)\n +\n +portal = context.getPortalObject()\n +\n +# Base_updateListboxSelection cannot be found.\n +Base_updateListboxSelection = getattr(context, \'Base_updateListboxSelection\', None)\n +if Base_updateListboxSelection is not None:\n + Base_updateListboxSelection()\n +\n +action_context = portal.restrictedTraverse(request.get(\'object_path\', \'?\'), context)\n +\n +new_print_action_list = context.Base_fixDialogActions(\n + context.Base_filterDuplicateActions(\n + portal.portal_actions.listFilteredActionsFor(action_context)), \'object_exchange\')\n +\n +if new_print_action_list:\n + return context.ERP5Site_redirect(new_print_action_list[0][\'url\'],\n + keep_items={\'form_id\': form_id,\n + \'cancel_url\': cancel_url,\n + \'object_path\': request.get(\'object_path\', context.getPath()),\n + \'dialog_category\': \'object_exchange\'}, **kw)\n +</string> </value> + </item> + <item> + <key> <string>_params</string> </key> + <value> <string>form_id, cancel_url, **kw</string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>Base_doExchange</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/context_box_render.xml b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/context_box_render.xml index b1ec5e8fe7e15ee11e4b55d85e091334011242fe..a57c3164bd2f0ad688f6dcfa901609dd1b76f50e 100644 --- a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/context_box_render.xml +++ b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/context_box_render.xml @@ -252,12 +252,12 @@ </tal:block>\n <span tal:condition="exchange_actions | report_actions"\n class="separator"><!--separator--></span>\n - <a tal:condition="exchange_actions" class="import_export" title="Import / Export"\n - tal:attributes="href python: portal.ERP5Site_renderCustomLink(exchange_actions[0][\'url\'], http_parameter_list, dialog_category=\'object_exchange\')"\n - i18n:attributes="title" i18n:domain="ui">\n + <button tal:condition="exchange_actions" class="import_export"\n + type="submit" name="Base_doExchange:method" title="Import Export"\n + i18n:attributes="title" i18n:domain="ui">\n <span class="image"></span>\n <span class="description" i18n:translate="" i18n:domain="ui">Import / Export</span>\n - </a>\n + </button>\n <button tal:condition="report_actions" class="report" type="submit" name="Base_doReport:method" title="Report"\n i18n:attributes="title" i18n:domain="ui">\n <span class="image"></span>\n diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision b/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision index 3430292e09f47fc7fd8752393a638faf20b1f7eb..1bb2f3ded3b22065bb443b414c536e0e8bea3d45 100644 --- a/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision +++ b/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision @@ -1 +1 @@ -1087 \ No newline at end of file +1088 \ No newline at end of file