Commit 7e3423c1 authored by Romain Courteaud's avatar Romain Courteaud

Temporary write _edit method, until we implement option variation better (as

exemple, rewrite the Matrixbox).


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3486 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 36f21d80
...@@ -312,3 +312,18 @@ class DeliveryCell(MappedValue, Movement): ...@@ -312,3 +312,18 @@ class DeliveryCell(MappedValue, Movement):
if parent is not None: if parent is not None:
parent.updateSimulationDeliveryProperties(movement_list, self) parent.updateSimulationDeliveryProperties(movement_list, self)
# XXX FIXME: option variation are today not well implemented
# This little hack is needed to make the matrixbox working
# in DeliveryLine_viewIndustrialPhase
# Generic form (DeliveryLine_viewOption) is required
security.declareProtected(Permissions.ModifyPortalContent,
'_edit')
def _edit(self, **kw):
"""
Store variation_category_list, in order to store new value of
industrial_phase after.
"""
if kw.has_key('variation_category_list'):
self._setVariationCategoryList(kw['variation_category_list'])
kw.pop('variation_category_list')
MappedValue._edit(self, **kw)
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