[IMP] marketing_campaign: activity now passes workitem to server actions via context

bzr revid: odo@openerp.com-20110311104300-ka3616hqa8ad52qg
This commit is contained in:
Olivier Dony
2011-03-11 11:43:00 +01:00
parent 7babc214b9
commit 02a703770a
@@ -453,7 +453,8 @@ class marketing_campaign_activity(osv.osv):
action_context = dict(context,
active_id=workitem.res_id,
active_ids=[workitem.res_id],
active_model=workitem.object_id.model)
active_model=workitem.object_id.model,
workitem=workitem)
res = server_obj.run(cr, uid, [activity.server_action_id.id],
context=action_context)
# server action return False if the action is perfomed