[Resolved]Error in workflow action

We got error on workflow approval action
.image
with detailed error message

Traceback (most recent call last):
  File "/home/adminuser/frappe-bench/apps/frappe/frappe/app.py", line 67, in application
    response = frappe.api.handle()
  File "/home/adminuser/frappe-bench/apps/frappe/frappe/api.py", line 59, in handle
    return frappe.handler.handle()
  File "/home/adminuser/frappe-bench/apps/frappe/frappe/handler.py", line 24, in handle
    data = execute_cmd(cmd)
  File "/home/adminuser/frappe-bench/apps/frappe/frappe/handler.py", line 64, in execute_cmd
    return frappe.call(method, **frappe.form_dict)
  File "/home/adminuser/frappe-bench/apps/frappe/frappe/__init__.py", line 1074, in call
    return fn(*args, **newargs)
  File "/home/adminuser/frappe-bench/apps/frappe/frappe/model/workflow.py", line 105, in apply_workflow
    doc.save()
  File "/home/adminuser/frappe-bench/apps/frappe/frappe/model/document.py", line 273, in save
    return self._save(*args, **kwargs)
  File "/home/adminuser/frappe-bench/apps/frappe/frappe/model/document.py", line 326, in _save
    self.run_post_save_methods()
  File "/home/adminuser/frappe-bench/apps/frappe/frappe/model/document.py", line 927, in run_post_save_methods
    self.run_method("on_update")
  File "/home/adminuser/frappe-bench/apps/frappe/frappe/model/document.py", line 797, in run_method
    out = Document.hook(fn)(self, *args, **kwargs)
  File "/home/adminuser/frappe-bench/apps/frappe/frappe/model/document.py", line 1073, in composer
    return composed(self, method, *args, **kwargs)
  File "/home/adminuser/frappe-bench/apps/frappe/frappe/model/document.py", line 1058, in runner
    add_to_return_value(self, f(self, method, *args, **kwargs))
  File "/home/adminuser/frappe-bench/apps/frappe/frappe/workflow/doctype/workflow_action/workflow_action.py", line 49, in process_workflow_actions
    next_possible_transitions = get_next_possible_transitions(workflow, get_doc_workflow_state(doc), doc)
  File "/home/adminuser/frappe-bench/apps/frappe/frappe/workflow/doctype/workflow_action/workflow_action.py", line 160, in get_next_possible_transitions
    if not is_transition_condition_satisfied(transition, doc):
  File "/home/adminuser/frappe-bench/apps/frappe/frappe/model/workflow.py", line 71, in is_transition_condition_satisfied
    return frappe.safe_eval(transition.condition, get_workflow_safe_globals(), dict(doc=doc.as_dict()))
  File "/home/adminuser/frappe-bench/apps/frappe/frappe/__init__.py", line 1570, in safe_eval
    return eval(code, eval_globals, eval_locals)
  File "<string>", line 1, in <module>
NameError: name 'ceo_approval' is not defined

ceo_approval is an customized field in form sales order. we run this for quite a long time without issue until now.

frappe version: 12.16.3
erpnext version: 12.19.0
Thanks.

The issue has been resolved by myself after double check all conditions in workflow.
The root cause is the syntax error in one condition setup.
Use doc.ceo_approval instead of ceo_approval fix the problem.