Match "to process" task creation between manual action and multi-action #47329
This commit is contained in:
parent
0a2a6d29d2
commit
4aa531590b
|
@ -1,5 +1,6 @@
|
|||
from Products.Five.browser import BrowserView
|
||||
from collective.taskqueue import taskqueue
|
||||
from pfwbged.basecontent.behaviors import IPfwbIncomingMail
|
||||
from plone import api
|
||||
|
||||
|
||||
|
@ -19,7 +20,7 @@ class BackgroundDocumentTransitionView(BrowserView):
|
|||
|
||||
document.reindexObject(idxs=['review_state'])
|
||||
|
||||
if action == 'to_process' and document.portal_type == 'dmsincomingmail':
|
||||
if action == 'to_process' and IPfwbIncomingMail.providedBy(document):
|
||||
from pfwbged.policy.subscribers.mail import incoming_mail_attributed
|
||||
incoming_mail_attributed(document, u'')
|
||||
|
||||
|
|
Reference in New Issue