Commit 12839fda authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

erp5_mrp_change_managment: Fix concurrency problem when editing the same key multiple times

parent b7d8247b
......@@ -103,10 +103,7 @@ def getExpectedTransformationTransformedResourceDict(transformation_change_list,
for key, value_list in base_dict.iteritems():
for ttr_value in value_list:
if 'transformation_change' in ttr_value:
if key not in expected_dict:
expected_dict[key] = []
expected_dict[key].append(ttr_value)
expected_dict[key] = [ttr_value]
return expected_dict
......
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