Owner update

Owner update

I want to update my sales owner

I have one lookup field in Sales module.İt name is Sales specialist.I want the sales owner to be a sales specialist every time I create a sale.

How can I do with function