From 69991e06548d0ef9bf687f3eb89b097733daefc9 Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Tue, 6 Sep 2016 15:55:22 +0200 Subject: [PATCH] [FIX] marketing_campaign: call super() using kwargs Without this patch, the new-api/old-api adatpter will invert the context and count attributes (takes always the context as last positional argument). This lead to having the count argument being the context, always returning the count of elements. --- addons/marketing_campaign/marketing_campaign.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/marketing_campaign/marketing_campaign.py b/addons/marketing_campaign/marketing_campaign.py index 36429c10bcb..639fc9abfc5 100644 --- a/addons/marketing_campaign/marketing_campaign.py +++ b/addons/marketing_campaign/marketing_campaign.py @@ -413,8 +413,8 @@ class marketing_campaign_activity(osv.osv): for activity in segment_obj.campaign_id.activity_ids: act_ids.append(activity.id) return act_ids - return super(marketing_campaign_activity, self).search(cr, uid, args, - offset, limit, order, context, count) + return super(marketing_campaign_activity, self).search( + cr, uid, args, offset=offset, limit=limit, order=order, context=context, count=count) #dead code def _process_wi_report(self, cr, uid, activity, workitem, context=None):