Commit 82a8c1c6 authored by Aurel's avatar Aurel

newTempBase is no longer working as before, use newContent(temp=1) instead


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44558 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a865b90d
...@@ -71,8 +71,7 @@ if exchange_line.getBasePrice() in (None, 0, 0.0):\n ...@@ -71,8 +71,7 @@ if exchange_line.getBasePrice() in (None, 0, 0.0):\n
\n \n
\n \n
# We have to looking for other currency exchanges lines\n # We have to looking for other currency exchanges lines\n
from Products.ERP5Type.Document import newTempBase\n temp_object = exchange_line.getParentValue().newContent(portal_type="Currency Exchange Line", temp=1)\n
temp_object = newTempBase(context.getPortalObject(),\'temp_object\')\n
start_date = exchange_line.getStartDate()\n start_date = exchange_line.getStartDate()\n
temp_kw = {\'category_list\':[\'resource/%s\' % exchange_line.getParentValue().getRelativeUrl(),\n temp_kw = {\'category_list\':[\'resource/%s\' % exchange_line.getParentValue().getRelativeUrl(),\n
\'price_currency/%s\' % exchange_line.getPriceCurrency()],\n \'price_currency/%s\' % exchange_line.getPriceCurrency()],\n
......
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