[FIX] base_automation: incorrect namespacing
closes odoo/odoo#58863 X-original-commit: a8c847808ca624614becc2958bcc13f4739eee24 Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
This commit is contained in:
@@ -485,7 +485,7 @@ class BaseAutomation(models.Model):
|
||||
domain = []
|
||||
context = dict(self._context)
|
||||
if action.filter_domain:
|
||||
domain = safe_eval(action.filter_domain, eval_context)
|
||||
domain = safe_eval.safe_eval(action.filter_domain, eval_context)
|
||||
records = self.env[action.model_name].with_context(context).search(domain)
|
||||
|
||||
# determine when action should occur for the records
|
||||
|
||||
Reference in New Issue
Block a user