Commit a8192820 authored by Nicolas Dumazet's avatar Nicolas Dumazet

use a TempAmount as parameter to getAggregatedAmountList


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33903 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent dc90ca2d
...@@ -56,9 +56,11 @@ ...@@ -56,9 +56,11 @@
<value> <string>if selection_name is not None:\n <value> <string>if selection_name is not None:\n
\n \n
reference_variation_category_list = context.portal_selections.getSelectionParamsFor(selection_name)[\'reference_variation_category_list\']\n reference_variation_category_list = context.portal_selections.getSelectionParamsFor(selection_name)[\'reference_variation_category_list\']\n
request = context.REQUEST\n from Products.ERP5Type.Document import newTempAmount\n
request.other[\'categories\'] = reference_variation_category_list\n tmp_context = newTempAmount(context, "temp_context",\n
tmp_context = context.asContext(context=context, REQUEST=request)\n quantity=1.0,\n
variation_category_list=reference_variation_category_list,\n
resource=context.getRelativeUrl()) \n
\n \n
aal = context.getAggregatedAmountList(tmp_context)\n aal = context.getAggregatedAmountList(tmp_context)\n
\n \n
...@@ -111,8 +113,8 @@ else:\n ...@@ -111,8 +113,8 @@ else:\n
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>reference_variation_category_list</string> <string>reference_variation_category_list</string>
<string>request</string> <string>Products.ERP5Type.Document</string>
<string>_write_</string> <string>newTempAmount</string>
<string>tmp_context</string> <string>tmp_context</string>
<string>aal</string> <string>aal</string>
<string>result</string> <string>result</string>
......
...@@ -56,9 +56,11 @@ ...@@ -56,9 +56,11 @@
<value> <string>if selection_name is not None:\n <value> <string>if selection_name is not None:\n
\n \n
reference_variation_category_list = context.portal_selections.getSelectionParamsFor(selection_name)[\'reference_variation_category_list\']\n reference_variation_category_list = context.portal_selections.getSelectionParamsFor(selection_name)[\'reference_variation_category_list\']\n
request = context.REQUEST\n from Products.ERP5Type.Document import newTempAmount\n
request.other[\'categories\'] = reference_variation_category_list\n tmp_context = newTempAmount(context, "temp_context",\n
tmp_context = context.asContext(context=context, REQUEST=request)\n quantity=1.0,\n
variation_category_list=reference_variation_category_list,\n
resource=context.getRelativeUrl()) \n
price_currency = request.get(\'price_currency\', None)\n price_currency = request.get(\'price_currency\', None)\n
\n \n
aal = context.getAggregatedAmountList(tmp_context)\n aal = context.getAggregatedAmountList(tmp_context)\n
...@@ -119,9 +121,10 @@ else:\n ...@@ -119,9 +121,10 @@ else:\n
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>reference_variation_category_list</string> <string>reference_variation_category_list</string>
<string>request</string> <string>Products.ERP5Type.Document</string>
<string>_write_</string> <string>newTempAmount</string>
<string>tmp_context</string> <string>tmp_context</string>
<string>request</string>
<string>price_currency</string> <string>price_currency</string>
<string>aal</string> <string>aal</string>
<string>_getiter_</string> <string>_getiter_</string>
......
482 483
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment