diff --git a/bt5/erp5_base/SkinTemplateItem/portal_skins/erp5_base/CurrencyExchange_getExchangeRateList.xml b/bt5/erp5_base/SkinTemplateItem/portal_skins/erp5_base/CurrencyExchange_getExchangeRateList.xml index 1547e77bb0ac289ca9244821e14b6fcd980d5c99..5136d19d75757a51fccfb4c099e3835c37111642 100644 --- a/bt5/erp5_base/SkinTemplateItem/portal_skins/erp5_base/CurrencyExchange_getExchangeRateList.xml +++ b/bt5/erp5_base/SkinTemplateItem/portal_skins/erp5_base/CurrencyExchange_getExchangeRateList.xml @@ -104,19 +104,12 @@ if to_currency is not None:\n mapped_value = context.portal_domains.generateMappedValue(object, \n has_cell_content=0, \n sort_method=sort_by_date)\n - predicate_list = context.portal_domains.searchPredicateList(object,\n - has_cell_content=0,\n - sort_method=sort_by_date)\n - predicate_list = context.portal_domains.searchPredicateList(object,\n - has_cell_content=0,\n - sort_method=sort_by_date,\n - test=0)\n result = [getattr(mapped_value, \'base_price\', None), \n getattr(mapped_value, \'discount\', None)]\n return result\n # The cache duration must not be too long, 300 is the maximum\n calculateExchangeFromParameters = CachingMethod(calculateExchangeFromParameters, \n - id = \'calculateExchangeFromParameterss\', cache_duration = 0)\n + id = \'calculateExchangeFromParameterss\', cache_duration = 300)\n result = calculateExchangeFromParameters(start_date=start_date,\n currency_exchange_type=currency_exchange_type,\n from_currency=from_currency,to_currency=to_currency)\n diff --git a/bt5/erp5_base/bt/revision b/bt5/erp5_base/bt/revision index 3d9aebb2cce8cad52bcdc4d24760f88a683c1eed..2fb681e3f93b6b7e6441bd64271813a1ec293b5b 100644 --- a/bt5/erp5_base/bt/revision +++ b/bt5/erp5_base/bt/revision @@ -1 +1 @@ -68 \ No newline at end of file +71 \ No newline at end of file