diff --git a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionLine_getNodeItemList.xml b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionLine_getNodeItemList.xml index bdc57d2b654ae6b86defdf9a29c38ddf10de3647..a328aba36f7f76613171e62ff961dac25bb24d12 100644 --- a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionLine_getNodeItemList.xml +++ b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionLine_getNodeItemList.xml @@ -72,6 +72,8 @@ If `mirror` is set to a true value, the list will be filtered for the mirror\n node.\n """\n from Products.ERP5Type.Cache import CachingMethod\n +from AccessControl import getSecurityManager\n +\n portal = context.getPortalObject()\n \n if omit_filter:\n @@ -149,7 +151,7 @@ return getItemList( category=category,\n portal_path=context.getPortalObject().getPhysicalPath(),\n mirror=mirror,\n omit_filter=omit_filter, # XXX possible optim: only one cache if omit_filter\n - user_name=context.REQUEST.AUTHENTICATED_USER,\n + user_name=str(getSecurityManager().getUser()),\n simulation_state=context.getProperty(\n \'simulation_state\', \'no_simulation_state\') )\n </string> </value> @@ -204,6 +206,8 @@ return getItemList( category=category,\n <string>omit_filter</string> <string>Products.ERP5Type.Cache</string> <string>CachingMethod</string> + <string>AccessControl</string> + <string>getSecurityManager</string> <string>_getattr_</string> <string>context</string> <string>portal</string> @@ -215,6 +219,7 @@ return getItemList( category=category,\n <string>sort</string> <string>None</string> <string>getItemList</string> + <string>str</string> </tuple> </value> </item> diff --git a/bt5/erp5_accounting/bt/revision b/bt5/erp5_accounting/bt/revision index 51f1d23291ee8e7a7a03ec643d5727a7859d7188..b094da400fb4e6828ca05095b3782541a5ddf481 100644 --- a/bt5/erp5_accounting/bt/revision +++ b/bt5/erp5_accounting/bt/revision @@ -1 +1 @@ -566 \ No newline at end of file +568 \ No newline at end of file