From 5a1ec145199c79ff97679baa14cea874b83bf9eb Mon Sep 17 00:00:00 2001 From: Nicolas Martinelli Date: Tue, 10 Jan 2017 17:06:57 +0100 Subject: [PATCH] [FIX] marketing_campaign: method not implemented In the Lead Automation module, the module is working as expected when the activity type is 'Email'. In other cases, the corresponding methods are not implemented and raise an error. opw-697829 --- addons/marketing_campaign/models/marketing_campaign.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/addons/marketing_campaign/models/marketing_campaign.py b/addons/marketing_campaign/models/marketing_campaign.py index 2aa745dfaa1..eccd3c4dd8d 100644 --- a/addons/marketing_campaign/models/marketing_campaign.py +++ b/addons/marketing_campaign/models/marketing_campaign.py @@ -340,6 +340,16 @@ class MarketingCampaignActivity(models.Model): self.ensure_one() return self.email_template_id.send_mail(workitem.res_id) + @api.multi + def _process_wi_report(self, workitem): + self.ensure_one() + return self.report_id.render_report(workitem.res_id, self.report_id.report_name, None) + + @api.multi + def _process_wi_action(self, workitem): + self.ensure_one() + return self.server_action_id.run() + @api.multi def process(self, workitem): self.ensure_one()