Simpulating the SO DocType!

Hi there! :raised_hand:
I’m making a duplicate of Sales Order DocType with minimal fields. As we know that the code is not going with the new copy. I want to simulate the process of fetching item details once choosing it in the Sales Order Item Child DocType with its conditions.
Can anyone help me with that?