Commit 03e8b4d8 authored by Nicolas Wavrant's avatar Nicolas Wavrant

fixup! PdmZuite_createDelivery

parent 916e5e2f
......@@ -18,7 +18,7 @@ business_process_id = 'erp5_default_business_process'
quantity = 1
business_process_module = portal.getDefaultModule("Business Process")
business_process = getattr(business_process_module, business_process_id)
business_process = getattr(business_process_module, business_process_id, None)
if business_process is None:
business_process = business_process_module.newContent(
portal_type="Business Process",
......
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