Commit 048d4a4f authored by Fabien Morin's avatar Fabien Morin

improve transformation report dialog to make possible to select the category...

improve transformation report dialog to make possible to select the category we want in the report :
This report can be huge and take a lot of time to generate. But sometime we don't need to make the report on every category but just on some of them. This permit to have a faster report in this cases.
In case nothing is selected, it's the same that if everything was selected (same behaviour than before).

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33787 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 86b093eb
......@@ -55,7 +55,11 @@
<key> <string>_body</string> </key>
<value> <string>from Products.ERP5Form.Report import ReportSection\n
\n
if reference_variation_category_list == []:\n
REQUEST = context.REQUEST\n
variation_category_list = REQUEST.get(\'variation_category_list\', [])\n
if len(variation_category_list):\n
reference_variation_category_list = variation_category_list\n
elif reference_variation_category_list == []:\n
reference_variation_category_list = context.getVariationCategoryList()\n
\n
result = []\n
......@@ -148,6 +152,9 @@ return result\n
<string>ReportSection</string>
<string>_getattr_</string>
<string>context</string>
<string>REQUEST</string>
<string>variation_category_list</string>
<string>len</string>
<string>result</string>
<string>cartesianProduct</string>
<string>variation_category_dict</string>
......
......@@ -99,6 +99,7 @@
<string>your_portal_skin</string>
<string>your_format</string>
<string>your_price_currency</string>
<string>your_variation_category_list</string>
</list>
</value>
</item>
......
474
\ No newline at end of file
479
\ 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