Set responsible when escalade

bzr revid: ced-187fca5f14802c2a7282ef6883cea5d35a9a22c1
This commit is contained in:
ced 2007-10-19 12:15:42 +00:00
parent 07464604aa
commit 350f210af5
1 changed files with 2 additions and 0 deletions

View File

@ -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)