[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:
+2
-2
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user