Commit cac1cb72 authored by Thibaut Deheunynck's avatar Thibaut Deheunynck

thibaut

improve listbox in Organisation_viewFormList. Add a new column (translated_validation_state_title)
improve listbox in PersonModule_viewPersonList. Remove column registration_corporate_code and role_title
improve verifyOrganisationExists.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23004 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent cdcfbafa
No related merge requests found
......@@ -310,6 +310,12 @@
</dictionary>
</value>
</item>
<item>
<key> <string>uid</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>values</string> </key>
<value>
......@@ -330,6 +336,10 @@
<string>corporate_registration_code</string>
<string>Corporate Registration Code</string>
</tuple>
<tuple>
<string>translated_validation_state_title</string>
<string>State</string>
</tuple>
</list>
</value>
</item>
......@@ -357,6 +367,10 @@
<string>corporate_registration_code</string>
<string>Corporate Registration Code</string>
</tuple>
<tuple>
<string>translated_validation_state_title</string>
<string>State</string>
</tuple>
</list>
</value>
</item>
......
......@@ -302,6 +302,12 @@
</dictionary>
</value>
</item>
<item>
<key> <string>uid</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>values</string> </key>
<value>
......@@ -318,10 +324,6 @@
<string>title</string>
<string>Name</string>
</tuple>
<tuple>
<string>corporate_registration_code</string>
<string>RCCM</string>
</tuple>
<tuple>
<string>birth_date</string>
<string>Birthday</string>
......@@ -330,10 +332,6 @@
<string>default_birthplace_address_city</string>
<string>Birthplace</string>
</tuple>
<tuple>
<string>role_title</string>
<string>Role</string>
</tuple>
<tuple>
<string>description</string>
<string>Description</string>
......@@ -371,10 +369,6 @@
<string>title</string>
<string>Usual Name</string>
</tuple>
<tuple>
<string>corporate_registration_code</string>
<string>RCCM</string>
</tuple>
<tuple>
<string>birth_date</string>
<string>Birthday</string>
......@@ -383,10 +377,6 @@
<string>default_birthplace_address_city</string>
<string>Birthplace</string>
</tuple>
<tuple>
<string>role_title</string>
<string>Role</string>
</tuple>
<tuple>
<string>description</string>
<string>Description</string>
......@@ -578,10 +568,6 @@ Role & Region
<string>title</string>
<string>Name</string>
</tuple>
<tuple>
<string>corporate_registration_code</string>
<string>RCCM</string>
</tuple>
<tuple>
<string>birth_date</string>
<string>Birthday</string>
......@@ -590,10 +576,6 @@ Role & Region
<string>default_birthplace_address_city</string>
<string>Birthplace</string>
</tuple>
<tuple>
<string>role_title</string>
<string>Role</string>
</tuple>
<tuple>
<string>translated_validation_state_title</string>
<string>State</string>
......
......@@ -74,7 +74,10 @@ person_module = portal.person_module\n
date = request_eform.getDate()\n
if request_eform.getPortalType() == \'P2\':\n
organisation_list = portal.portal_catalog(parent_uid = portal.organisation_module.getUid(),\n
corporate_registration_code = request_eform.getCorporateRegistrationCode(),\n
corporate_registration_code = \\\n
request_eform.getEstablishmentModification() \\\n
and request_eform.getEstablishmentCorporateRegistrationCode()\\\n
or request_eform.getCompanyCorporateRegistrationCode(),\n
ignore_empty_string = 0)\n
if not len(organisation_list):\n
raise ValidationFailed, \'Organisation was not found for this person\'\n
......
905
\ No newline at end of file
907
\ 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