From 55f199aae8516a277e5cad00529a3002967eb0bf Mon Sep 17 00:00:00 2001 From: Wenjie Zheng <wenjie.zheng@tiolive.com> Date: Mon, 18 May 2015 12:27:46 +0000 Subject: [PATCH] Workflow.py: deploy getReference. --- product/ERP5Workflow/Document/Workflow.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/product/ERP5Workflow/Document/Workflow.py b/product/ERP5Workflow/Document/Workflow.py index f7ec8146d3..e036168846 100644 --- a/product/ERP5Workflow/Document/Workflow.py +++ b/product/ERP5Workflow/Document/Workflow.py @@ -125,8 +125,8 @@ class Workflow(IdAsReferenceMixin("workflow_", "prefix"), XMLObject): """ Generate a key used in the workflow history. """ - history_key = self.unrestrictedTraverse(self.getRelativeUrl()).getId() - return '_'.join(history_key.split('_')[1:]) + history_key = self.unrestrictedTraverse(self.getRelativeUrl()).getReference() + return history_key def _updateWorkflowHistory(self, document, status_dict): """ -- 2.30.9