Commit 3552e3c8 authored by Nicolas Dumazet's avatar Nicolas Dumazet

revert r33486, as it was breaking testTransformation, and since Transformation

re-indexation is now singling out temporary objects.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33896 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fd7ce3a0
......@@ -137,8 +137,6 @@ class TransformedResource(Predicate, XMLObject, XMLMatrix, Amount):
"""
Get all interesting amount value and return AggregatedAmountList
"""
from Products.ERP5Type.Document import newTempAmount
# Create the result object
aggregated_amount_list = AggregatedAmountList()
test_result = self.test(context)
......@@ -152,8 +150,8 @@ class TransformedResource(Predicate, XMLObject, XMLMatrix, Amount):
# changing. Failure to do so exposes to possible erroneous cache hits
# for physical path based caching.
tmp_id = '_'.join((parent.getId(), self.getId(), context.getId()))
tmp_amount = newTempAmount(parent, tmp_id)
tmp_amount = parent.newContent(id=tmp_id,
temp_object=1, portal_type=self.getPortalType())
# Create error string
error_string = ''
# Add resource relation
......
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