diff --git a/product/ERP5SyncML/Conduit/BaobabConduit.py b/product/ERP5SyncML/Conduit/BaobabConduit.py index 0cc9f29a45138a9e9510c18391cfcaa02cbe1e6e..897343e995052f54fa72097944355b90c3f805ae 100644 --- a/product/ERP5SyncML/Conduit/BaobabConduit.py +++ b/product/ERP5SyncML/Conduit/BaobabConduit.py @@ -336,9 +336,12 @@ class BaobabConduit(ERP5Conduit): )[0].getObject() subobject.setCareerSubordinationValue(organisation) else: # This is an organisation object + site_value = organisation_module_object.Baobab_getSiteFromCodification( + object_id[:3]) subobject = organisation_module_object.newContent( portal_type = 'Organisation' - , id = object_id - ) + , id = object_id + , site = site_value.getRelativeUrl() + ) subobject.setRole('client') ### handle bank account objects