Commit 052f4885 authored by wenjie.zheng's avatar wenjie.zheng

PortalTypeClassInteractor.py: reset accessor/method after reassign workflow...

PortalTypeClassInteractor.py: reset accessor/method after reassign workflow through type workflow list.
parent 1f0bcb34
...@@ -55,6 +55,11 @@ class PortalTypeClassInteractor(Interactor): ...@@ -55,6 +55,11 @@ class PortalTypeClassInteractor(Interactor):
self.on(Localizer.add_language).doAfter(self.resetDynamic) self.on(Localizer.add_language).doAfter(self.resetDynamic)
self.on(Localizer.del_language).doAfter(self.resetDynamic) self.on(Localizer.del_language).doAfter(self.resetDynamic)
# New workflow compatibility
from Products.ERP5Type.ERP5Type import ERP5TypeInformation
self.on(ERP5TypeInformation.addTypeWorkflowList).doAfter(self.resetDynamic)
self.on(ERP5TypeInformation.setTypeWorkflowList).doAfter(self.resetDynamic)
def resetDynamic(self, method_call_object, *args, **kw): def resetDynamic(self, method_call_object, *args, **kw):
""" """
Call resetDynamicDocuments at the end of the transaction Call resetDynamicDocuments at the end of the transaction
......
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