Commit d49edfab authored by Vincent Pelletier's avatar Vincent Pelletier

Fix currency conversion.

newTempBase objects cannot contain categories nowadays.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44626 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1f59904d
......@@ -81,7 +81,10 @@ if to_currency is not None:\n
from DateTime import DateTime\n
start_date = DateTime()\n
from Products.ERP5Type.Document import newTempBase\n
temp_object = newTempBase(context.getPortalObject(),\'temp_object\')\n
# Note: SupplyCell is the class of Currency Exchange Line portal type objects\n
# But in reality, anything should do.\n
from Products.ERP5Type.Document import newTempSupplyCell as newTemp\n
temp_object = newTemp(context.getPortalObject(),\'temp_object\')\n
temp_kw = {\'category_list\':[\'resource/%s\' % from_currency,\n
\'price_currency/%s\' % to_currency],\n
\'start_date\':start_date\n
......
964
\ No newline at end of file
965
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