Show workflow instance completion percent based on current state

This commit is contained in:
Roberto Rosario
2015-06-17 02:21:16 -04:00
parent 12a9ccd5e0
commit 5fc77f4e84

View File

@@ -66,6 +66,10 @@ class DocumentStatesApp(apps.AppConfig):
'name': _('Date and time'),
'attribute': encapsulate(lambda workflow: getattr(workflow.get_last_log_entry(), 'datetime', _('None')))
},
{
'name': _('Completion'),
'attribute': encapsulate(lambda workflow: getattr(workflow.get_current_state(), 'completion', _('None')))
},
])
register_model_list_columns(WorkflowInstanceLogEntry, [