diff --git a/product/ERP5Type/patches/CMFCoreUtils.py b/product/ERP5Type/patches/CMFCoreUtils.py index ceadfb720164bcdfcd4a8575bd4525984ba02670..48c1483307e468cd53f322ee6146e108581547f9 100644 --- a/product/ERP5Type/patches/CMFCoreUtils.py +++ b/product/ERP5Type/patches/CMFCoreUtils.py @@ -42,7 +42,7 @@ def CMFCoreUtils_getViewFor(obj, view='view'): for action in actions: if action.getId() == view or action.getCategory().endswith('_%s' % view): if _verifyActionPermissions(obj, action): - if action.testCondition(context): + if action.testCondition(context) and action.visible: target = action.action(context).strip() if target.startswith('/'): target = target[1:]