I can't create a comment tap to add crm notes like in lead or prospect!

My client script, I saw the lead.js script and I copied this code from their:

I can now add a note

But when I click on Add button it’s give me this error:

Error details:

App Versions

{
	"drive": "0.0.12",
	"erpnext": "15.44.0",
	"frappe": "15.48.1",
	"hrms": "15.35.3",
	"insights": "2.2.9",
	"payments": "0.0.1",
	"webshop": "0.0.1"
}

Route

Form/Note Test/ggsg5e63vk

Traceback

Traceback (most recent call last):
  File "apps/frappe/frappe/app.py", line 114, in application
    response = frappe.api.handle(request)
  File "apps/frappe/frappe/api/__init__.py", line 49, in handle
    data = endpoint(**arguments)
  File "apps/frappe/frappe/api/v1.py", line 36, in handle_rpc_call
    return frappe.handler.handle()
  File "apps/frappe/frappe/handler.py", line 49, in handle
    data = execute_cmd(cmd)
  File "apps/frappe/frappe/handler.py", line 85, in execute_cmd
    return frappe.call(method, **frappe.form_dict)
  File "apps/frappe/frappe/__init__.py", line 1725, in call
    return fn(*args, **newargs)
  File "apps/frappe/frappe/handler.py", line 323, in run_doc_method
    method_obj = getattr(doc, method)
AttributeError: 'Document' object has no attribute 'add_note'

Request Data

{
	"type": "POST",
	"args": {
		"note": "<div class=\"ql-editor read-mode\"><p>teset 1</p></div>",
		"docs": "{\"name\":\"ggsg5e63vk\",\"owner\":\"Administrator\",\"creation\":\"2024-12-12 10:30:13.714206\",\"modified\":\"2024-12-12 10:30:13.714206\",\"modified_by\":\"Administrator\",\"docstatus\":0,\"idx\":0,\"first_name\":\"test\",\"doctype\":\"Note Test\",\"notes\":[],\"__last_sync_on\":\"2024-12-12T08:30:13.880Z\"}",
		"method": "add_note",
		"args": "{\"note\":\"<div class=\\\"ql-editor read-mode\\\"><p>teset 1</p></div>\"}"
	},
	"freeze": true,
	"headers": {},
	"error_handlers": {},
	"url": "/api/method/run_doc_method",
	"request_id": null
}

Response Data

{
	"exception": "AttributeError: 'Document' object has no attribute 'add_note'",
	"exc_type": "AttributeError"
}