transition medical certificate person field to a contact field (#4631)

This commit is contained in:
Frédéric Péters 2014-10-09 14:19:48 +02:00
parent 5beba61e76
commit 731adee644
2 changed files with 30 additions and 24 deletions

View File

@ -1,8 +1,8 @@
msgid ""
msgstr ""
"Project-Id-Version: pfwbged.basecontent\n"
"POT-Creation-Date: 2014-03-05 10:46+0000\n"
"PO-Revision-Date: 2013-07-04 14:05+0100\n"
"POT-Creation-Date: 2014-10-09 12:15+0000\n"
"PO-Revision-Date: 2014-10-09 14:16+0200\n"
"Last-Translator: Cédric Messiant <cedricmessiant@ecreall.com>\n"
"Language-Team: Ecréall\n"
"MIME-Version: 1.0\n"
@ -19,15 +19,15 @@ msgstr ""
msgid "Car Insurance"
msgstr "Assurance voiture"
#: ../types.py:152
msgid "Committee or council that met"
msgstr "Comité ou conseil qui s'est réuni"
#: ../types.py:30
#: ../types.py:36
msgid "Concerned Person"
msgstr "Personne concernée"
#: ../types.py:43
#: ../types.py:30
msgid "Concerned Person (do not use anymore)"
msgstr "Personne concernée (ne plus utiliser)"
#: ../types.py:48
msgid "Contacts"
msgstr "Contacts"
@ -39,7 +39,7 @@ msgstr "Créer le fichier depuis"
msgid "Deadline"
msgstr "Date limite de traitement"
#: ../types.py:98
#: ../types.py:107
msgid "Document Type"
msgstr "Type de document"
@ -55,31 +55,31 @@ msgstr "Carte verte"
msgid "Healthcare Card"
msgstr "Carte de soin de santé"
#: ../types.py:186
#: ../types.py:76
msgid "Immediate Decision"
msgstr "Décision du bureau immédiate"
#: ../behaviors.py:63
#: ../behaviors.py:66
msgid "In copy"
msgstr "À informer"
#: ../types.py:90
#: ../types.py:99
msgid "Insurance Company"
msgstr "Compagnie d'assurance"
#: ../types.py:94
#: ../types.py:103
msgid "Insurance Company Reference"
msgstr "Numéro interne de la compagnie d'assurance"
#: ../types.py:148
#: ../types.py:157
msgid "Internal Reference"
msgstr "Référence interne"
#: ../types.py:117
#: ../types.py:126
msgid "Internal Reference Number"
msgstr "Numéro interne"
#: ../behaviors.py:51
#: ../behaviors.py:56
msgid "Keywords"
msgstr "Mots-clés"
@ -87,7 +87,7 @@ msgstr "Mots-clés"
msgid "Label"
msgstr "Intitulé"
#: ../types.py:53
#: ../types.py:58
msgid "Meeting Date"
msgstr "Date de réunion"
@ -99,7 +99,7 @@ msgstr "Nouvelle version"
msgid "Original Paper Version"
msgstr "Version papier original"
#: ../types.py:86
#: ../types.py:95
msgid "Person"
msgstr "Personne concernée"
@ -107,7 +107,7 @@ msgstr "Personne concernée"
msgid "Previous Version"
msgstr "Version précédente"
#: ../types.py:135
#: ../types.py:144
msgid "Recipients"
msgstr "Destinataires"
@ -115,11 +115,11 @@ msgstr "Destinataires"
msgid "Related task"
msgstr "Tâche liée"
#: ../types.py:131
#: ../types.py:140
msgid "Sender"
msgstr "Expéditeur"
#: ../types.py:138
#: ../types.py:147
msgid "Session"
msgstr "Session"
@ -127,10 +127,11 @@ msgstr "Session"
msgid "Signed version"
msgstr "Version signée"
#: ../behaviors.py:58
#: ../behaviors.py:51
msgid "Treated by"
msgstr "Traité par"
#: ../browser/adddmsfile.py:42
msgid "Uploaded File"
msgstr "Fichier téléchargé"

View File

@ -26,9 +26,14 @@ class PfwbBaseDocument(DmsDocument):
class IMedicalCertificate(IDmsIncomingMail):
""" """
concerned_person = schema.Choice(
concerned_contact = ContactChoice(
title=_(u'Concerned Person'),
required=True,
portal_types=('person',),
required=False)
concerned_person = schema.Choice(
title=_(u'Concerned Person (do not use anymore)'),
required=False,
vocabulary='plone.principalsource.Users')
form.widget(concerned_person=ReallyAjaxChosenFieldWidget)