Commit 24eed8b0 authored by Alexandre Boeglin's avatar Alexandre Boeglin

If the resource and variations are set at the same time, resource must be set

before any variation.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5129 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 440f0fbf
......@@ -89,6 +89,10 @@ class DeliveryLine(Movement, XMLObject, XMLMatrix, Variated):
# Force in _edit to modify variation_base_category_list first
security.declarePrivate( '_edit' )
def _edit(self, REQUEST=None, force_update = 0, **kw):
# If variations and resources are set at the same time, resource must be
# set before any variation.
if kw.has_key('resource_value'):
self._setResourceValue( kw['resource_value'] )
# We must first prepare the variation_base_category_list before we do the edit of the rest
#LOG('in edit', 0, str(kw))
if kw.has_key('variation_base_category_list'):
......
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