Description of the issue
Context information (for bug reports)
Output of bench version
Steps to reproduce the issue
- drap select any existing doctype json file content and copy (ctrl + c)
- in any erpnext screen, paste (ctrl + v)
- system auto switch to doctype form view,
Observed result
only empty fields records pasted
Expected result
fields correctly copied
Stacktrace / full error message
Additional information
in the doctype json files, only child table field name is mentioned, in each child record there is no DocType, the copy_doc function relies on the doctype info to correctly copy the child doc.
{
"doctype": "DocType",
'name':'dummy'
"fields": [
{
"fieldname": "holiday_date",
"label": "Date",
}]
}
the following highlighted line to be added.

OS version / distribution, Frappe install method, etc.
Description of the issue
Context information (for bug reports)
Output of
bench versionSteps to reproduce the issue
Observed result
only empty fields records pasted
Expected result
fields correctly copied
Stacktrace / full error message
Additional information
in the doctype json files, only child table field name is mentioned, in each child record there is no DocType, the copy_doc function relies on the doctype info to correctly copy the child doc.
the following highlighted line to be added.

OS version / distribution,
Frappeinstall method, etc.