Timesheet Error While adding the timesheet

I’m getting the following error while creating the timesheet
TypeError: validate_link() missing 1 required positional argument: ‘docname’

i can still save the doc but always i’m getting the above error while creating the timesheet
Can anyone help with this?

@the_rebel it looks like something is wrong with the code , try to update your app or open the code and fix the issue yourself

@bahaou Thanks.
I have updated my code but still the same issue
currently I’m using frappe 13.20 which is a updated one

also happening on

ERPNext: v13.19.0 (HEAD)
Frappe Framework: v13.19.0 (HEAD)

Traceback (most recent call last):
  File "apps/frappe/frappe/app.py", line 68, in application
    response = frappe.api.handle()
  File "apps/frappe/frappe/api.py", line 55, in handle
    return frappe.handler.handle()
  File "apps/frappe/frappe/handler.py", line 31, in handle
    data = execute_cmd(cmd)
  File "apps/frappe/frappe/handler.py", line 68, in execute_cmd
    return frappe.call(method, **frappe.form_dict)
  File "apps/frappe/frappe/__init__.py", line 1208, in call
    return fn(*args, **newargs)
TypeError: validate_link() missing 1 required positional argument: 'docname'

@the_rebel, you need to have the employee account set up for the user who is creating the timesheet. This way when you are creating a new timesheet, the employee field is filled out.