Commit 267eb2c7 authored by Sebastien Robin's avatar Sebastien Robin

use setPropertyList for setting values given by getPropertyList

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25486 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4a543453
......@@ -189,7 +189,9 @@ class DeliveryBuilder(OrderBuilder):
if property_dict in (None, {}):
return
delivery = self.getPortalObject().restrictedTraverse(delivery_relative_url)
delivery.edit(comment=comment, **property_dict)
delivery.edit(comment=comment)
for (property, value) in property_dict.iteritems():
delivery.setPropertyList(property, value)
# Try to remove existing properties/categories from Movements that
# should exist on Deliveries.
......
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