Commit 9668f929 authored by Nicolas Wavrant's avatar Nicolas Wavrant

erp5_base: removes dangerous test condition in Delivery_init (fix for 56ef22ac)

parent 0a5e8554
......@@ -5,5 +5,4 @@ elif kw.get('ledger', None) is not None:
else:
portal_type_id = context.getPortalType()
portal_type = context.getPortalObject().portal_types.get(portal_type_id, None)
if portal_type:
context.setLedger(portal_type.getDefaultLedger(None))
context.setLedger(portal_type.getDefaultLedger(None))
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