[FIX] crm: fixed 2 write calls not using a list of ids, causing issues with mail.thread

bzr revid: tde@openerp.com-20120228140407-uwqetqg3tb0d2try
This commit is contained in:
Thibault Delavallée
2012-02-28 15:04:07 +01:00
parent 17d077bb7d
commit d682be4242
+2 -2
View File
@@ -267,7 +267,7 @@ class crm_base(object):
data = {'state': 'open', 'active': True}
if not case.user_id:
data['user_id'] = uid
self.write(cr, uid, case.id, data)
self.write(cr, uid, [case.id], data)
self._action(cr, uid, cases, 'open')
return True
@@ -397,7 +397,7 @@ class crm_case(crm_base):
data = {'state': 'open', 'active': True }
if not case.user_id:
data['user_id'] = uid
self.write(cr, uid, case.id, data)
self.write(cr, uid, [case.id], data)
self._action(cr, uid, cases, 'open')
return True