Commit 73b46def authored by Jérome Perrin's avatar Jérome Perrin

bypass init script when creating new documents


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3900 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent be80a889
......@@ -327,7 +327,8 @@ class OrderBuilder(XMLObject, Amount, Predicate):
new_delivery_id = str(delivery_module.generateNewId())
delivery = delivery_module.newContent(
portal_type=self.getDeliveryPortalType(),
id=new_delivery_id)
id=new_delivery_id,
bypass_init_script=1)
# Put properties on delivery
delivery.edit(**property_dict)
......
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