From 26944837c27282f21acf73b91c7fc9086c912a8f Mon Sep 17 00:00:00 2001 From: Romain Courteaud <romain@nexedi.com> Date: Tue, 6 Nov 2007 10:31:29 +0000 Subject: [PATCH] Simplify module_view action's condition. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17410 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../portal_types/portal_properties/module_view.xml | 2 +- product/ERP5/bootstrap/erp5_core/bt/revision | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 70955b823c..1dc48d29ec 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 and object.getId().endswith(\'_module\') and getattr(object, \'getTypeInfo\', None) and object.getTypeInfo() and object.getTypeInfo().getId().endswith(\' Module\')</string> </value> + <value> <string>python: object.getPortalType() in portal.getPortalModuleTypeList()</string> </value> </item> </dictionary> </pickle> diff --git a/product/ERP5/bootstrap/erp5_core/bt/revision b/product/ERP5/bootstrap/erp5_core/bt/revision index c021767357..4c38412cc7 100644 --- a/product/ERP5/bootstrap/erp5_core/bt/revision +++ b/product/ERP5/bootstrap/erp5_core/bt/revision @@ -1 +1 @@ -558 \ No newline at end of file +559 \ No newline at end of file -- 2.30.9