[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
This commit is contained in:
Nicolas Martinelli
2017-01-10 19:19:58 +01:00
parent ff098a7ad4
commit 5a1ec14519
@@ -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()