diff --git a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_checkNamingConventions.xml b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_checkNamingConventions.xml index d0b3b2500b4b1aac00b69cd9df7d53ff5505a292..0be9f11e8f6fc8f09af76a0b2d6f7be546601c92 100644 --- a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_checkNamingConventions.xml +++ b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_checkNamingConventions.xml @@ -107,6 +107,11 @@ def checkField(folder, form, field):\n error_message += checkTitle(path, \'columns\', title)\n for id, title in field.get_value(\'all_columns\'):\n error_message += checkTitle(path, \'all_columns\', title)\n +\n + a = field.getListMethodName()\n + if (a!= None and not a.endswith(\'List\')):\n + if a not in [\'portal_catalog\', \'searchFolder\', \'objectValues\']:\n + error_message = "%s : %s : %r Bad Naming Convention\\n" % (path, id, a)\n return error_message\n \n \n