diff --git a/bt5/erp5_egov/WorkflowTemplateItem/portal_workflow/egov_interaction_workflow/scripts/checkAccountInexistance.xml b/bt5/erp5_egov/WorkflowTemplateItem/portal_workflow/egov_interaction_workflow/scripts/checkAccountInexistance.xml index 019c6e9c34ae1267e62d16bb5741b75ef36138bc..794015eb34f0b7ea038f94b3ec1b2c74c4803f3b 100644 --- a/bt5/erp5_egov/WorkflowTemplateItem/portal_workflow/egov_interaction_workflow/scripts/checkAccountInexistance.xml +++ b/bt5/erp5_egov/WorkflowTemplateItem/portal_workflow/egov_interaction_workflow/scripts/checkAccountInexistance.xml @@ -56,6 +56,7 @@ <value> <string encoding="cdata"><![CDATA[ changed_object = state_change[\'object\']\n +translateString = changed_object.Base_translateString\n login = changed_object.getCompanyName().lower()\n portal_catalog = changed_object.portal_catalog\n ninea = changed_object.getNinea()\n @@ -66,7 +67,6 @@ from Products.DCWorkflow.DCWorkflow import ValidationFailed\n result = portal_catalog( portal_type=\'Organisation\',\n vat_code=changed_object.getNinea())\n \n -\n if len(result) > 1:\n msg = "Error : There is more than one company with the NINEA code ${code}"\n msg = translateString(msg, mapping=dict(code=ninea))\n @@ -126,6 +126,7 @@ if len(result) == 1 and result[0].getObject().getReference():\n <string>_getitem_</string> <string>changed_object</string> <string>_getattr_</string> + <string>translateString</string> <string>login</string> <string>portal_catalog</string> <string>ninea</string> @@ -134,7 +135,6 @@ if len(result) == 1 and result[0].getObject().getReference():\n <string>result</string> <string>len</string> <string>msg</string> - <string>translateString</string> <string>dict</string> </tuple> </value> diff --git a/bt5/erp5_egov/bt/revision b/bt5/erp5_egov/bt/revision index 511fa83dfa3be29e929664165b2228c4fbd9ff3e..be6652a2ab7bd0c8450fb25bd74ece961efb90bb 100644 --- a/bt5/erp5_egov/bt/revision +++ b/bt5/erp5_egov/bt/revision @@ -1 +1 @@ -414 \ No newline at end of file +415 \ No newline at end of file