Commit 2cb2145a authored by Łukasz Nowak's avatar Łukasz Nowak

- workaround a problem for cell creation - it have to be split into two...

 - workaround a problem for cell creation - it have to be split into two transactions in case of setting variation


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27613 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a961846f
...@@ -166,7 +166,8 @@ class TradeModelLine(Predicate, XMLMatrix, Amount): ...@@ -166,7 +166,8 @@ class TradeModelLine(Predicate, XMLMatrix, Amount):
raise ValueError("Can't find the cell corresponding to those "+\ raise ValueError("Can't find the cell corresponding to those "+\
"cells coordinates : %s" % cell_coordinates) "cells coordinates : %s" % cell_coordinates)
tmp_movement = newTempSimulationMovement(self.getPortalObject(), tmp_movement = newTempSimulationMovement(self.getPortalObject(),
self_id, self_id)
tmp_movement.edit(
variation_base_category_list = cell.getVariationBaseCategoryList(), variation_base_category_list = cell.getVariationBaseCategoryList(),
variation_category_list = cell.getVariationCategoryList(), variation_category_list = cell.getVariationCategoryList(),
price = cell.getPrice(), price = cell.getPrice(),
......
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