From 7514767360159d7344b81113588e2c615d66bda5 Mon Sep 17 00:00:00 2001 From: gaelTorrecillas Date: Wed, 13 Nov 2024 12:39:27 +0100 Subject: [PATCH] [FIX] automation_oca: pass eval_context in record step domain safe_eval --- automation_oca/models/automation_record_step.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/automation_oca/models/automation_record_step.py b/automation_oca/models/automation_record_step.py index 277a27b..5597a81 100644 --- a/automation_oca/models/automation_record_step.py +++ b/automation_oca/models/automation_record_step.py @@ -123,7 +123,10 @@ def run(self, trigger_activity=True): if ( self.record_id.resource_ref is None or not self.record_id.resource_ref.filtered_domain( - safe_eval(self.configuration_step_id.applied_domain) + safe_eval( + self.configuration_step_id.applied_domain, + self.configuration_step_id.configuration_id._get_eval_context(), + ) ) or not self._check_to_execute() ):