From 24f31fc0502cbe9ee950191a9bd97e16a6c454bf Mon Sep 17 00:00:00 2001 From: Fabien Morin <fabien@nexedi.com> Date: Mon, 17 Nov 2008 10:22:19 +0000 Subject: [PATCH] add assignment on person created git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24604 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../scripts/SubscriptionForm_createAccount.xml | 9 +++++++++ bt5/erp5_egov/bt/change_log | 1 + bt5/erp5_egov/bt/revision | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/bt5/erp5_egov/WorkflowTemplateItem/portal_workflow/egov_interaction_workflow/scripts/SubscriptionForm_createAccount.xml b/bt5/erp5_egov/WorkflowTemplateItem/portal_workflow/egov_interaction_workflow/scripts/SubscriptionForm_createAccount.xml index 6bec7ef4df9..f434643a6d8 100644 --- a/bt5/erp5_egov/WorkflowTemplateItem/portal_workflow/egov_interaction_workflow/scripts/SubscriptionForm_createAccount.xml +++ b/bt5/erp5_egov/WorkflowTemplateItem/portal_workflow/egov_interaction_workflow/scripts/SubscriptionForm_createAccount.xml @@ -95,6 +95,13 @@ elif changed_object.getOptionManager():\n accountant.setFunction(\'entreprise/directeur/pdg/gerant\')\n elif changed_object.getOptionDirector():\n accountant.setFunction(\'entreprise/directeur/pdg/pdg\')\n + \n +# create an assignment to be able to login :\n +from DateTime import DateTime\n +assignment = accountant.newContent(portal_type=\'Assignment\')\n +assignment.setStartDate(DateTime())\n +assignment.setStopDate(DateTime()+365)\n +assignment.open()\n \n # set the login and password required a manager role, so a script with a \n # proxy role is used\n @@ -157,6 +164,8 @@ accountant.Person_sendCrendentialsByEMail()\n <string>organisation</string> <string>person_module</string> <string>accountant</string> + <string>DateTime</string> + <string>assignment</string> <string>context</string> <string>login</string> <string>password</string> diff --git a/bt5/erp5_egov/bt/change_log b/bt5/erp5_egov/bt/change_log index 3babe6789de..9297646c6ad 100644 --- a/bt5/erp5_egov/bt/change_log +++ b/bt5/erp5_egov/bt/change_log @@ -1,5 +1,6 @@ 2008-11-11 fabien * modify some scripts to be able to make a subscription using the new safi form +* add assignment on person created * typo 2008-11-03 fabien diff --git a/bt5/erp5_egov/bt/revision b/bt5/erp5_egov/bt/revision index 95bae2dc25e..2415c065944 100644 --- a/bt5/erp5_egov/bt/revision +++ b/bt5/erp5_egov/bt/revision @@ -1 +1 @@ -446 \ No newline at end of file +448 \ No newline at end of file -- 2.30.9