Commit d030531e authored by Yoshinori Okuji's avatar Yoshinori Okuji

2010-05-18 yo

* Change the default of rounding to False, as it is currently very slow to apply rounding models. So those who want to use this feature should enable it explicitly.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35417 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e6cb589d
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
<value> <string>specialise = context.getSpecialiseValue(portal_type=(\'Purchase Trade Condition\',\'Sale Trade Condition\'))\n <value> <string>specialise = context.getSpecialiseValue(portal_type=(\'Purchase Trade Condition\',\'Sale Trade Condition\'))\n
\n \n
if specialise is not None:\n if specialise is not None:\n
rounding = kwargs.get(\'rounding\', True)\n rounding = kwargs.get(\'rounding\', False)\n
return specialise.getAggregatedAmountList(context, rounding=rounding)\n return specialise.getAggregatedAmountList(context, rounding=rounding)\n
\n \n
return []\n return []\n
...@@ -102,7 +102,7 @@ return []\n ...@@ -102,7 +102,7 @@ return []\n
<string>context</string> <string>context</string>
<string>specialise</string> <string>specialise</string>
<string>None</string> <string>None</string>
<string>True</string> <string>False</string>
<string>rounding</string> <string>rounding</string>
</tuple> </tuple>
</value> </value>
......
2010-05-18 yo
* Change the default of rounding to False, as it is currently very slow to apply rounding models. So those who want to use this feature should enable it explicitly.
2010-05-18 yo 2010-05-18 yo
* Have Base_getSpecialisedAggregatedAmountList to pass the parameter rounding to getAggregatedAmountList. It defaults to True, as this method is used for UI, and rounding should be applied in the UI in most cases. * Have Base_getSpecialisedAggregatedAmountList to pass the parameter rounding to getAggregatedAmountList. It defaults to True, as this method is used for UI, and rounding should be applied in the UI in most cases.
......
924 925
\ 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