[IMP] base_action_rule: small code improvement

bzr revid: rco@openerp.com-20121221103003-tl689nm2ser3u001
This commit is contained in:
Raphael Collet 2012-12-21 11:30:03 +01:00
parent ee5121a590
commit fed5651f1c
1 changed files with 2 additions and 1 deletions

View File

@ -143,7 +143,8 @@ class base_action_rule(osv.osv):
model.write(cr, uid, record_ids, values, context=context)
if action.act_followers and hasattr(model, 'message_subscribe'):
model.message_subscribe(cr, uid, record_ids, map(int, action.act_followers), context=context)
follower_ids = map(int, action.act_followers)
model.message_subscribe(cr, uid, record_ids, follower_ids, context=context)
return True