diff --git a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getMirrorAccountUrl.xml b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getMirrorAccountUrl.xml index 5188c8a29af5baeca48c55d04943be5de3ec9374..f748c8b8fd4be93466ce08ce35032405b68fe070 100644 --- a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getMirrorAccountUrl.xml +++ b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getMirrorAccountUrl.xml @@ -70,14 +70,13 @@ <key> <string>_body</string> </key> <value> <string encoding="cdata"><![CDATA[ -index = selection.getIndex()\n -name = selection.getName()\n +index = context.portal_selections.getSelectionIndexFor(selection_name)\n object = brain.getObject()\n object = object.getDestinationValue()\n if object is None:\n url = None\n else:\n - url = object.absolute_url() + \'/view?selection_index=%s&selection_name=%s&reset=1\' % (index, name)\n + url = object.absolute_url() + \'/view?selection_index=%s&selection_name=%s&reset=1\' % (index, selection_name)\n \n return url\n @@ -98,7 +97,7 @@ return url\n </item> <item> <key> <string>_params</string> </key> - <value> <string>brain=None, selection=None</string> </value> + <value> <string>brain=None, selection=None, selection_name=None</string> </value> </item> <item> <key> <string>errors</string> </key> @@ -118,7 +117,7 @@ return url\n <dictionary> <item> <key> <string>co_argcount</string> </key> - <value> <int>2</int> </value> + <value> <int>3</int> </value> </item> <item> <key> <string>co_varnames</string> </key> @@ -128,7 +127,6 @@ return url\n <string>selection</string> <string>_getattr_</string> <string>index</string> - <string>name</string> <string>object</string> <string>None</string> <string>url</string> diff --git a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getTransactionListUrl.xml b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getTransactionListUrl.xml index af81855b5488b50b63769606c89bbb47d7951c26..0a081b0ee0314e1504d3b556280a48b925d99659 100644 --- a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getTransactionListUrl.xml +++ b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getTransactionListUrl.xml @@ -70,8 +70,7 @@ <key> <string>_body</string> </key> <value> <string>from ZTUtils import make_query\n \n -index = selection.getIndex()\n -name = selection.getName()\n +index = context.portal_selections.getSelectionIndexFor(selection_name)\n object = brain.getObject()\n \n # this is for domain_tree mode\n @@ -80,7 +79,7 @@ if object.getPortalType() == "Category" : \n \n method = \'Account_viewAccountingTransactionList\'\n kw = { \'selection_index\': str(index),\n - \'selection_name\' : name, \n + \'selection_name\' : selection_name, \n \'reset\' : \'1\', \n }\n \n @@ -101,7 +100,7 @@ return object.getPath() + \'/\' + method + \'?\' + make_query(kw)\n </item> <item> <key> <string>_params</string> </key> - <value> <string>brain=None, selection=None, **kwd</string> </value> + <value> <string>brain=None, selection=None, selection_name=None, **kwd</string> </value> </item> <item> <key> <string>errors</string> </key> @@ -121,7 +120,7 @@ return object.getPath() + \'/\' + method + \'?\' + make_query(kw)\n <dictionary> <item> <key> <string>co_argcount</string> </key> - <value> <int>2</int> </value> + <value> <int>3</int> </value> </item> <item> <key> <string>co_varnames</string> </key> @@ -134,7 +133,6 @@ return object.getPath() + \'/\' + method + \'?\' + make_query(kw)\n <string>make_query</string> <string>_getattr_</string> <string>index</string> - <string>name</string> <string>object</string> <string>method</string> <string>str</string>