[FIX] rules were not correctly triggered when escalading (because it didn't take in consideration the escalade)

bzr revid: qdp@tinyerp.com-20090324103109-ypuyvevv7ssdug13
This commit is contained in:
qdp 2009-03-24 11:31:09 +01:00
parent 273f6816ae
commit e54ff74194
1 changed files with 1 additions and 0 deletions

View File

@ -721,6 +721,7 @@ class crm_case(osv.osv):
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)
cases = self.browse(cr, uid, ids)
self.__history(cr, uid, cases, _('Escalate'))
self._action(cr, uid, cases, 'escalate')
return True