Commit 50035c17 authored by Sebastien Robin's avatar Sebastien Robin

check if object simulated before propagate resource to sim


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1813 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b99dca0f
...@@ -391,6 +391,7 @@ Une ligne tarifaire.""" ...@@ -391,6 +391,7 @@ Une ligne tarifaire."""
""" """
SetMappedValue._edit(self, REQUEST=REQUEST, force_update = force_update, SetMappedValue._edit(self, REQUEST=REQUEST, force_update = force_update,
reindex_object=reindex_object, **kw) reindex_object=reindex_object, **kw)
if self.isSimulated():
self.getRootDeliveryValue().activate().propagateResourceToSimulation() self.getRootDeliveryValue().activate().propagateResourceToSimulation()
# This one must be the last # This one must be the last
if kw.has_key('item_id_list'): if kw.has_key('item_id_list'):
......
...@@ -147,6 +147,7 @@ Une ligne tarifaire.""" ...@@ -147,6 +147,7 @@ Une ligne tarifaire."""
# This one must be the last # This one must be the last
if kw.has_key('item_id_list'): if kw.has_key('item_id_list'):
self._setItemIdList( kw['item_id_list'] ) self._setItemIdList( kw['item_id_list'] )
if self.isSimulated():
self.getRootDeliveryValue().edit() # So that we make sure that automatic workflow transitions self.getRootDeliveryValue().edit() # So that we make sure that automatic workflow transitions
# will be activated on the delivery # will be activated on the delivery
self.getRootDeliveryValue().activate().propagateResourceToSimulation() self.getRootDeliveryValue().activate().propagateResourceToSimulation()
......
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