From ba382bcc43d45f41265708cfef5f7fac9b5ac163 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 1 Jan 2025 19:07:43 +0100 Subject: [PATCH] Search waiting marketing automation record activities using record ID There is no custom search_rec_name for record, so all the records are valid. Closes #13787 (grafted from 8c3bfd7cbc85a01cad95a03fd3537f69f525bcfa) --HG-- branch : 6.0 --- modules/marketing_automation/marketing_automation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]),