Retrieve the value of a field to assign it to another

Hello
I would like to retrieve when selecting a parent task when creating a child task, the number of a parent task to put it in a child task field. Is there a way to do this from the view side please? The field in question is « parentTask » from the project module

See post below.
It did not work ?
https://forum.axelor.com/t/retrieve-the-value-of-an-overload-field/4997/5

yes it worked except here i just want to say that field1 of my view (parent task fields) and equal to field2 (task number fields)