From f894661fd0c7a349654e35acecbac117ff4b7f20 Mon Sep 17 00:00:00 2001 From: Yusei Tahara <yusei@nexedi.com> Date: Mon, 10 Sep 2007 08:26:27 +0000 Subject: [PATCH] Fixed Module Property action bug. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16201 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../portal_types/portal_properties/module_view.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product/ERP5/bootstrap/erp5_core/ActionTemplateItem/portal_types/portal_properties/module_view.xml b/product/ERP5/bootstrap/erp5_core/ActionTemplateItem/portal_types/portal_properties/module_view.xml index d40f7a9313..d01b496ca3 100644 --- a/product/ERP5/bootstrap/erp5_core/ActionTemplateItem/portal_types/portal_properties/module_view.xml +++ b/product/ERP5/bootstrap/erp5_core/ActionTemplateItem/portal_types/portal_properties/module_view.xml @@ -102,7 +102,7 @@ <dictionary> <item> <key> <string>text</string> </key> - <value> <string>python:object.getTypeInfo() and object.getTypeInfo().getId().endswith(\' Module\') and object.getId().endswith(\'_module\')</string> </value> + <value> <string>python:object.getId().endswith(\'_module\') and getattr(object, \'getTypeInfo\', None) and object.getTypeInfo() and object.getTypeInfo().getId().endswith(\' Module\')</string> </value> </item> </dictionary> </pickle> -- 2.30.9