Commit fcf262ed authored by Romain Courteaud's avatar Romain Courteaud

erp5_credential: set destination_project on assignment if possible

parent cf9a2412
...@@ -46,6 +46,7 @@ for role in context.getRoleList(): ...@@ -46,6 +46,7 @@ for role in context.getRoleList():
assignment.edit(site = context.getSite(), assignment.edit(site = context.getSite(),
activity = context.getActivityList(), activity = context.getActivityList(),
function = context.getFunctionList(), function = context.getFunctionList(),
destination_project = context.getDestinationProject(),
destination = organisation_url, destination = organisation_url,
stop_date=delay) stop_date=delay)
assignment.open() assignment.open()
...@@ -60,6 +61,7 @@ for role in context.getRoleList(): ...@@ -60,6 +61,7 @@ for role in context.getRoleList():
function = context.getFunctionList(), function = context.getFunctionList(),
group = context.getGroupList(), group = context.getGroupList(),
destination = organisation_url, destination = organisation_url,
destination_project = context.getDestinationProject(),
start_date = start_date, start_date = start_date,
stop_date = delay) stop_date = delay)
......
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