Why this error appear and how can I solve it?

my client script:

frappe.ui.form.on(‘Note Test’, {

refresh(frm) {
    frm.trigger("show_notes");
},

show_notes(frm) {
	const crm_notes = new erpnext.utils.CRMNotes({
		frm: frm,
		notes_wrapper: $(frm.fields_dict.notes_html.wrapper),
	});
	crm_notes.refresh();
},

});

Can you please copy and share the error?

App Versions

{
	"chat": "0.0.1",
	"erpnext": "15.41.1",
	"frappe": "15.47.1",
	"frappe_whatsapp": "1.0.7",
	"hrms": "15.35.0",
	"lms": "2.10.0",
	"payments": "0.0.1",
	"raven": "2.0.0",
	"webshop": "0.0.1"
}

Route

Form/Note Test/v2tle7hk1m

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 1781, in call
    return fn(*args, **newargs)
  File "apps/frappe/frappe/handler.py", line 322, 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>test</p></div>",
		"docs": "{\"name\":\"v2tle7hk1m\",\"owner\":\"mo.ali@prosperasystems.com\",\"creation\":\"2024-12-11 11:33:45.273686\",\"modified\":\"2024-12-11 11:33:45.273686\",\"modified_by\":\"mo.ali@prosperasystems.com\",\"docstatus\":0,\"idx\":0,\"name1\":\"Test\",\"doctype\":\"Note Test\",\"notes\":[],\"__last_sync_on\":\"2024-12-11T09:45:33.392Z\"}",
		"method": "add_note",
		"args": "{\"note\":\"<div class=\\\"ql-editor read-mode\\\"><p>test</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"
}

Note Test is a custom doctype?

Yes I created it