diff --git a/modules/marketing_automation/marketing_automation.py b/modules/marketing_automation/marketing_automation.py index 1e3c95156f..43a4fd240c 100644 --- a/modules/marketing_automation/marketing_automation.py +++ b/modules/marketing_automation/marketing_automation.py @@ -845,7 +845,7 @@ class RecordActivity(Workflow, ModelSQL, ModelView): def _on_event(self, event): cls = self.__class__ record_activities = cls.search([ - ('record', '=', str(self.record)), + ('record', '=', self.record), ('activity', 'in', [ c.id for c in self.activity.children if c.event == event and not c.negative]),