Commit f93c5488 authored by Sebastien Robin's avatar Sebastien Robin

wait that the object is edited before updating security

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15174 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f0cf296e
......@@ -335,6 +335,7 @@ class BaobabConduit(ERP5Conduit):
id=organisation_id
)[0].getObject()
subobject._setCareerSubordinationValue(organisation)
else: # This is an organisation object
site_value = organisation_module_object.Baobab_getSiteFromCodification(
object_id[:3])
......@@ -465,8 +466,6 @@ class BaobabConduit(ERP5Conduit):
, id = object_id
)
if subobject.getPortalType() == 'Person':
subobject.updateLocalRolesOnSecurityGroups()
return subobject
......@@ -695,6 +694,8 @@ class BaobabConduit(ERP5Conduit):
if object.getPortalType() == 'Bank Account':
object.portal_workflow.doActionFor(object, 'validate_action',
wf_id='bank_account_workflow')
if object.getPortalType() == 'Person':
object.updateLocalRolesOnSecurityGroups()
"""
......
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