Commit 2d9a4b81 authored by Sebastien Robin's avatar Sebastien Robin

added the subordination link

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10886 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ef2c17e3
...@@ -307,6 +307,13 @@ class BaobabConduit(ERP5Conduit): ...@@ -307,6 +307,13 @@ class BaobabConduit(ERP5Conduit):
, id = object_id , id = object_id
) )
subobject.setCareerRole('client') subobject.setCareerRole('client')
# We first try to get the organisation corresponding
organisation_id = 'site_%s' % object_id[:3]
organisation = person_module_object.portal_catalog(
portal_type='Organisation',
id=organisation_id
)[0].getObject()
subobject.setCareerSubordinationValue(organisation)
else: # This is an organisation object else: # This is an organisation object
subobject = organisation_module_object.newContent( portal_type = 'Organisation' subobject = organisation_module_object.newContent( portal_type = 'Organisation'
, id = object_id , id = object_id
......
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