diff --git a/bt5/erp5_registry_ohada/WorkflowTemplateItem/portal_workflow/ohada_form_validation_interaction_workflow/scripts/modifyPhysicalPersonFromP2.xml b/bt5/erp5_registry_ohada/WorkflowTemplateItem/portal_workflow/ohada_form_validation_interaction_workflow/scripts/modifyPhysicalPersonFromP2.xml index bc1f581a80b980436821bf180ba46de46ae42050..cbf0d7c105e6cf070cad8a64ef8c0ffa75125b3f 100644 --- a/bt5/erp5_registry_ohada/WorkflowTemplateItem/portal_workflow/ohada_form_validation_interaction_workflow/scripts/modifyPhysicalPersonFromP2.xml +++ b/bt5/erp5_registry_ohada/WorkflowTemplateItem/portal_workflow/ohada_form_validation_interaction_workflow/scripts/modifyPhysicalPersonFromP2.xml @@ -154,7 +154,6 @@ else:\n if request_eform.getCompanyModifications():\n organisation_list = [organisation.getObject() for organisation in \\\n organisation_module.searchFolder(corporate_registration_code=request_eform.getCorporateRegistrationCode())]\n - context.log(organisation_list)\n for organisation in organisation_list:\n activity_free_text = organisation.getActivityFreeText()\n activity_list = activity_free_text and activity_free_text.split(\',\') or []\n @@ -182,12 +181,12 @@ else:\n corporate_registration_code = new_registry_number,\n activity_free_text = request_eform.getCompanyModifiedAddedActivities(),\n role=\'commerce/siege\',)\n - assgt = person.newContent(portal_type=\'Assignment\')\n - assgt.edit(function = \'commerce/commercant\',\n + assignment = person.newContent(portal_type=\'Assignment\')\n + assignment.edit(function = \'commerce/commercant\',\n destination_form_value = request_eform,\n destination_value = second_organisation)\n - assgt.openSubmit()\n - assgt.open()\n + assignment.openSubmit()\n + assignment.open()\n else:\n organisation.edit(title = request_eform.getCompanyModifiedName(),\n corporate_name = request_eform.getCompanyModifiedName())\n @@ -302,7 +301,7 @@ for history in history_list:\n <string>removed_activities_list</string> <string>removed_activities</string> <string>second_organisation</string> - <string>assgt</string> + <string>assignment</string> <string>history_list</string> <string>history</string> </tuple> diff --git a/bt5/erp5_registry_ohada/bt/revision b/bt5/erp5_registry_ohada/bt/revision index 354d30ba65ad042b77fcc8e08062c000a1a2e624..ad7876489d45cf02eb43e74903374fdfe70a48f4 100644 --- a/bt5/erp5_registry_ohada/bt/revision +++ b/bt5/erp5_registry_ohada/bt/revision @@ -1 +1 @@ -869 \ No newline at end of file +871 \ No newline at end of file