Set responsible when escalade
bzr revid: ced-187fca5f14802c2a7282ef6883cea5d35a9a22c1
This commit is contained in:
parent
07464604aa
commit
350f210af5
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue