Error in Saving Leave Application

Hello, I am running ERPNext version-14, I got this error when i have changed the data to another company. The leave application is not saved whenever its status is ‘Open’. But with other status is okay.
Here is what i have whenever i try to save the leave application.

Traceback (most recent call last):
File “apps/frappe/frappe/utils/jinja.py”, line 85, in render_template
return get_jenv().from_string(template).render(context)
File “env/lib/python3.10/site-packages/jinja2/environment.py”, line 1301, in render
self.environment.handle_exception()
File “env/lib/python3.10/site-packages/jinja2/environment.py”, line 936, in handle_exception
raise rewrite_traceback_stack(source=source)
File