From 350f210af58d3f6147e9aa33732d27dc945438ff Mon Sep 17 00:00:00 2001 From: ced <> Date: Fri, 19 Oct 2007 12:15:42 +0000 Subject: [PATCH] Set responsible when escalade bzr revid: ced-187fca5f14802c2a7282ef6883cea5d35a9a22c1 --- addons/crm/crm.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/crm/crm.py b/addons/crm/crm.py index f338f09ba0d..5fa88425257 100644 --- a/addons/crm/crm.py +++ b/addons/crm/crm.py @@ -567,6 +567,8 @@ class crm_case(osv.osv): data = {'active':True, 'user_id': False} if case.section_id.parent_id: data['section_id'] = case.section_id.parent_id.id + if case.section_id.parent_id.user_id: + data['user_id'] = case.section_id.parent_id.user_id.id else: raise osv.except_osv('Error !', 'You can not escalate this case.\nYou are already at the top level.') self.write(cr, uid, ids, data)