Commit 32bd1215 authored by Julien Muchembled's avatar Julien Muchembled

CMFActivity: ignore harmless OID mismatch after BT upgrade

parent 34ddeea0
......@@ -241,7 +241,9 @@ class Message(BaseMessage):
% (self.object_path,), error=sys.exc_info())
self.setExecutionState(MESSAGE_NOT_EXECUTABLE)
else:
if self.oid and self.oid != getattr(aq_base(obj), '_p_oid', None):
if (self.oid and self.oid != getattr(aq_base(obj), '_p_oid', None) and
# XXX: BusinessTemplate must be fixed to preserve OID
'portal_workflow' not in self.object_path):
raise ValueError("OID mismatch for %r" % obj)
return obj
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment