State tax on Capital gains through ESPP from Oregon employer

Moved to California from Oregon - on Aug 

Sold my ESPP stocks on Nov - Should I pay the state tax on the stocks sold both for california and oregon.

California says it will tax whatever income when you are a california resident 

Oregon state say they will tax what ever is from oregon source of income 

california does not allow "other tax credit if it is taxed by oregon"