don't include "send" menu items if version is lacking a file
This commit is contained in:
parent
9a2a956576
commit
f9ef1c3b99
|
@ -139,7 +139,7 @@ class CustomMenu(menu.WorkflowMenu):
|
|||
workflowActions.insert(idx, to_process_without_comment_action)
|
||||
to_process_action['title'] = _(u'To process (with comment)')
|
||||
|
||||
if IDmsFile.providedBy(context):
|
||||
if IDmsFile.providedBy(context) and context.file:
|
||||
workflowActions.append(
|
||||
{'available': True,
|
||||
'visible': True,
|
||||
|
|
Reference in New Issue