Commit 2103f887 authored by Ayush Tiwari's avatar Ayush Tiwari

multiple_catalog: Add getValidationState function for ERP5Catalog for bootstrap

parent 8089570a
...@@ -216,6 +216,15 @@ class ERP5Catalog(Folder, Catalog): ...@@ -216,6 +216,15 @@ class ERP5Catalog(Folder, Catalog):
return md.get('type', 'string') return md.get('type', 'string')
return None return None
security.declareProtected(Permissions.AccessContentsInformation,
'getValidationState')
def getValidationState(self):
"""
Needed for bootstrap when the WorkflowState Accessor is not defined yet
"""
return self.workflow_history[
'validation_workflow'][-1]['validation_state']
##### Overriding setters functions for multple_selection properties ####### ##### Overriding setters functions for multple_selection properties #######
##### Required as after every edit we expect the values sorted ####### ##### Required as after every edit we expect the values sorted #######
......
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