[FIX] Fixed bug in object create

bzr revid: tde@openerp.com-20120315091257-7h04fdhmjr9gczzy
This commit is contained in:
Thibault Delavallée
2012-03-15 10:12:57 +01:00
parent 67d5a3f425
commit 0f32742ff0
+2 -2
View File
@@ -112,10 +112,10 @@ class base_needaction(osv.osv):
if context is None:
context = {}
# perform create
obj_id = super(base_needaction, self).create(cr, uid, ids, values, context=context)
obj_id = super(base_needaction, self).create(cr, uid, values, context=context)
# link user_ids
needaction_user_ids = self.get_needaction_user_ids(cr, uid, [obj_id], context=context)
self._update_users(cr, uid, [id], needaction_user_ids[obj_id], context=context)
self._update_users(cr, uid, [obj_id], needaction_user_ids[obj_id], context=context)
return obj_id
def write(self, cr, uid, ids, values, context=None):