How to create lead sours in Opportunity based on lead sourse contact (from which the Opportunity is created)?

I created opportunity, but I need that lead source is the same as in the contact, but I think this is js + ajax + logic hook. Logic hook I have with previous version of sugar 6.