Commit 24f31fc0 authored by Fabien Morin's avatar Fabien Morin

add assignment on person created

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24604 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d6709752
...@@ -95,6 +95,13 @@ elif changed_object.getOptionManager():\n ...@@ -95,6 +95,13 @@ elif changed_object.getOptionManager():\n
accountant.setFunction(\'entreprise/directeur/pdg/gerant\')\n accountant.setFunction(\'entreprise/directeur/pdg/gerant\')\n
elif changed_object.getOptionDirector():\n elif changed_object.getOptionDirector():\n
accountant.setFunction(\'entreprise/directeur/pdg/pdg\')\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 \n
# set the login and password required a manager role, so a script with a \n # set the login and password required a manager role, so a script with a \n
# proxy role is used\n # proxy role is used\n
...@@ -157,6 +164,8 @@ accountant.Person_sendCrendentialsByEMail()\n ...@@ -157,6 +164,8 @@ accountant.Person_sendCrendentialsByEMail()\n
<string>organisation</string> <string>organisation</string>
<string>person_module</string> <string>person_module</string>
<string>accountant</string> <string>accountant</string>
<string>DateTime</string>
<string>assignment</string>
<string>context</string> <string>context</string>
<string>login</string> <string>login</string>
<string>password</string> <string>password</string>
......
2008-11-11 fabien 2008-11-11 fabien
* modify some scripts to be able to make a subscription using the new safi form * modify some scripts to be able to make a subscription using the new safi form
* add assignment on person created
* typo * typo
2008-11-03 fabien 2008-11-03 fabien
......
446 448
\ No newline at end of file \ 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