diff --git a/bt5/erp5_pdm/SkinTemplateItem/portal_skins/erp5_pdm/Transformation_getAggregatedAmountList.xml b/bt5/erp5_pdm/SkinTemplateItem/portal_skins/erp5_pdm/Transformation_getAggregatedAmountList.xml index 66d370fbfd293ca1eef9f26a53afb41aefeb0de6..7f558528238a0abb090cff7ab141d21ceff580b9 100644 --- a/bt5/erp5_pdm/SkinTemplateItem/portal_skins/erp5_pdm/Transformation_getAggregatedAmountList.xml +++ b/bt5/erp5_pdm/SkinTemplateItem/portal_skins/erp5_pdm/Transformation_getAggregatedAmountList.xml @@ -53,9 +53,11 @@ </item> <item> <key> <string>_body</string> </key> - <value> <string>request = context.REQUEST\n -request.other[\'categories\'] = reference_variation_category_list\n -tmp_context = context.asContext(context=context, REQUEST=request)\n + <value> <string>from Products.ERP5Type.Document import newTempAmount\n +tmp_context = newTempAmount(context, "temp_context",\n + quantity=1.0,\n + variation_category_list=reference_variation_category_list,\n + resource=context.getRelativeUrl()) \n price_currency = kw.get(\'price_currency\', None)\n \n result = context.getAggregatedAmountList(tmp_context)\n @@ -107,10 +109,10 @@ return result\n <tuple> <string>reference_variation_category_list</string> <string>kw</string> - <string>_getattr_</string> + <string>Products.ERP5Type.Document</string> + <string>newTempAmount</string> <string>context</string> - <string>request</string> - <string>_write_</string> + <string>_getattr_</string> <string>tmp_context</string> <string>None</string> <string>price_currency</string> diff --git a/bt5/erp5_pdm/bt/revision b/bt5/erp5_pdm/bt/revision index 6efca19ea0b6814902678d61d3b643d78797c000..9f8ebf73f949262f1ac9e31f985774ae5fd52a31 100644 --- a/bt5/erp5_pdm/bt/revision +++ b/bt5/erp5_pdm/bt/revision @@ -1 +1 @@ -481 \ No newline at end of file +482 \ No newline at end of file