Issues in making button and fetching another doctype field

I have added button in project doctype. make>plan
I want to copy some fields of project in plan doctype.
i have written code for it.
still not able to fetch data.
my py code is:

My js code is:

Is it r8 code?