Commit 6ba88e98 authored by Sebastien Robin's avatar Sebastien Robin

fixed undefined variable DateTime

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11219 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent bae0cffa
...@@ -97,7 +97,7 @@ if to_currency is not None:\n ...@@ -97,7 +97,7 @@ if to_currency is not None:\n
temp_kw = {\'category_list\':[\'resource/%s\' % from_currency,\n temp_kw = {\'category_list\':[\'resource/%s\' % from_currency,\n
\'currency_exchange_type/%s\' % currency_exchange_type,\n \'currency_exchange_type/%s\' % currency_exchange_type,\n
\'price_currency/%s\' % to_currency],\n \'price_currency/%s\' % to_currency],\n
\'start_date\':DateTime()\n \'start_date\':start_date\n
}\n }\n
temp_object.edit(**temp_kw)\n temp_object.edit(**temp_kw)\n
object = temp_object\n object = temp_object\n
...@@ -121,6 +121,9 @@ if to_currency is not None:\n ...@@ -121,6 +121,9 @@ if to_currency is not None:\n
currency_exchange_type=currency_exchange_type,\n currency_exchange_type=currency_exchange_type,\n
from_currency=from_currency,to_currency=to_currency)\n from_currency=from_currency,to_currency=to_currency)\n
else:\n else:\n
if start_date is None:\n
if getattr(context,\'isDelivery\',None):\n
start_date = context.getStartDate()\n
mapped_value = context.portal_domains.generateMappedValue(object, \n mapped_value = context.portal_domains.generateMappedValue(object, \n
has_cell_content=0, \n has_cell_content=0, \n
sort_method=sort_by_date)\n sort_method=sort_by_date)\n
...@@ -196,9 +199,9 @@ return result\n ...@@ -196,9 +199,9 @@ return result\n
<string>None</string> <string>None</string>
<string>calculateExchangeFromParameters</string> <string>calculateExchangeFromParameters</string>
<string>result</string> <string>result</string>
<string>getattr</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>mapped_value</string> <string>mapped_value</string>
<string>getattr</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
62 68
\ 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