How to inherit selling module into my module?

Hi,

I am new to ERPNEXT, I don’t know how to inherit selling module into my module. how to do that?
I have an another doubt. If we customize sale order form from the selling module what will happen? will it reflected to selling module or my own module?