Commit ee2626b9 authored by Thibaut Deheunynck's avatar Thibaut Deheunynck

thibaut

Replace destination_value by destination_title
and change the function. It is not corporate/shareholder but entreprise/associe

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22811 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 366a7b73
......@@ -82,10 +82,10 @@ d = beginning_date.day()\n
stop_year = y+duration_length\n
first_associate= person_module.newContent(portal_type =\'Person\')\n
first_associate_assignment = first_associate.newContent(portal_type =\'Assignment\',\n
function = \'corporation/shareholder\',\n
function = \'entreprise/associe\',\n
start_date =organisation.getStartDate(),\n
stop_date ="%04d/%02d/%02d" % (stop_year, m, d),\n
destination_value = organisation,\n
destination_title = organisation,\n
)\n
#Second Associate\n
second_associate= person_module.newContent(portal_type =\'Person\')\n
......@@ -96,10 +96,10 @@ second_associate.edit(\n
career_subordination_value = organisation,\n
)\n
second_associate_assignment = second_associate.newContent(portal_type =\'Assignment\',\n
function = \'corporation/shareholder\',\n
function = \'entreprise/associe\',\n
start_date =organisation.getStartDate(),\n
stop_date=organisation.getStopDate(),\n
destination_value = organisation,\n
destination_title = organisation,\n
)\n
</string> </value>
</item>
......
......@@ -161,7 +161,7 @@ assignment_list = [assignment.getObject() for assignment in context.portal_catal
destination_form_uid = request_eform.getUid())]\n
for assignment in assignment_list:\n
assignment.open()\n
assignment.edit(destination_value=organisation,\n
assignment.edit(destination_title=organisation,\n
corporate_registration_code=new_registry_number)\n
\n
# Changes roles when secondaries organisations are created and update the organisation with\n
......
813
\ No newline at end of file
814
\ No newline at end of file
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